The research for this
article was done by Hydro- and huey_ on Undernet's #FreeBSD IRC channel.
man tcsh
Hydro- told me where to look. If you want the prompt set each time you login,
put the code in either .tcshrc or .login in your home directory.
But my opinion is that you should use the shell-specific file for shell-specific
things. In other words, I recommend .tcsh over .login.
.login
First, go to your home directory:
If you want a prompt that looks like:
[user@host] current/path(cmnd#)
Then use:
set prompt="%B[%n@%m]%b%/(%h): "
Changing your tcsh prompt20 May 2000
Andrew Zavjalov writes in with this stuff about prompts:
A nice prompt in xterm only! (or in smart ssh client, f.e. TeraTermPro):
set ellipsis set prompt='%{^[]0;%n@%m, %.03, %P, CODE=%?^G%}%B%n%b@%m%B:%b%.02> '
^[ - Esc ^G - \007
This prompt will change xterm title every time.
Another prompt (huge and not useful): #set prompt='%{^[]0;%n@%m, %.03, %P,
CODE=%?^G%}%{'"`echotc AF 2`"'%}%B%n%b%{'"`echotc AF
1`"'%}@%{'"`echotc AF 3`"'%}%m%B%{'"`echotc AF
5`"'%}:%{'"`echotc AF 7`"'%}%b%.02> '