1832691 Members
2734 Online
110043 Solutions
New Discussion

about prompt

 
王曦_1
Occasional Advisor

about prompt

hi expert:
i want to change a user's prompt which in C shell, when in ksh the environment parameter is "PS1", and what is it in C shell,
thanks very much
4 REPLIES 4
Armin Feller
Honored Contributor

Re: about prompt

try following:

alias cd 'cd \!*;set prompt="$cwd : "'
T G Manikandan
Honored Contributor

Re: about prompt

set prompt ??


Thanks
Steve Labar
Valued Contributor

Re: about prompt

'prompt' is the variable you need to set. Armin's example will include the current working directory in the prompt. If you are not interested in the current working directory you can simply define as
set prompt='prompt you want'
in you cshrc file.

Good Luck.
Steve
RAC_1
Honored Contributor

Re: about prompt

set prompt.

set prompt="what you want"
There is no substitute to HARDWORK