What is the equivalent setting on ksh with the following csh alias.
alias cd 'cd \!* ; getprompt'
alias getprompt 'set prompt="${HOST}:$cwd/ \! % "'
This is basically to display the current directory on the prompt. For instance if I am at /var/mail then I want the prompt to look like
HostName:/var/mail 335 %
where 335 is the command number on the history list.
W/o this I have to constantly type 'pwd' to see where I am.
Thanks,
Shine.
alias cd 'cd \!* ; getprompt'
alias getprompt 'set prompt="${HOST}:$cwd/ \! % "'
This is basically to display the current directory on the prompt. For instance if I am at /var/mail then I want the prompt to look like
HostName:/var/mail 335 %
where 335 is the command number on the history list.
W/o this I have to constantly type 'pwd' to see where I am.
Thanks,
Shine.