Ok, I see what's happening. But unfortunately it seems that zsh can't execute commands in PS1 variable. At least I can't find how to do this...
With bash life is a little simplier
And returning to Your first idea, maybe an alias called "ccd" or sth like that, which would look like:
Code:
ccd () {
cd $@
wl
}
added to .zshrc file... Works, but requires using "ccd" instead of "cd"
Rubbish zsh Unfortunately, I'm not (yet) to decide which shell to use on our systems.
But I found another way of doing it. I must confess, I don't understand that whole zsh-syntax, but I was able to modify the solution presented in the zsh-FAQ section 3.6.
Putting the following into you zshrc results in displaying "WorkingDir @ Host Username" in the PuTTY-window-title after each cd:
(This rule of not being allowed to post URLs in the beginning is just pathetic. What is the use of that? I know cannot reference the source of my solution...)
Anyway, many thanks sulti!
---------- Post updated at 07:42 AM ---------- Previous update was at 07:41 AM ----------
Yay, I now reached my first 5 postings and so I now CAN post that URL of source of mine o_O
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Currently I am using this command to split a CSV file based on the distinct values in the 16th (position) column.
awk -F, 'NR==1 { hdr=$0; next } $16 != prev { prev=name=$16; gsub(/_]/,"",name); $0 = hdr "\n" $0 } { print > ("/Directory/File."name".Download.csv") }'... (3 Replies)
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hi to all,
Some help please, I want to modify using awk the print showed by command "ls -l -R" from:
/home/user1/Mydocs/Year/2010/July/Experiments:
total 1608
-rw-r--r-- 1 user1 user1 1431 Feb 2 22:45 Experiments1.TAR
-rw-r--r-- 1 user1 user1 923 Feb 2 22:45 Tests_Exp1.TXT... (4 Replies)
Hi All,
I'm trying to find a command like similar to "touch" which would let me change the file size property.
For ex: I have a file of size 1MB using the command i would like to set/update the size something like 1KB.
Is it possible? Is there any such command which would accomplish this... (3 Replies)