switch($TERM)
case "xterm*":
setenv TITLE "%{\033]0;%n@%m:%~\007%}"
breaksw
default:
setenv TITLE ""
breaksw
endsw
set prompt = "${TITLE}%n@%m:%~%#"
So something like%/ The current working directory.
%~ The current working directory, but with one's home direc-
tory represented by `~' and other users' home directories
represented by `~user' as per Filename substitution.
`~user' substitution happens only if the shell has already
used `~user' in a pathname in the current session.
% echo "set prompt = '%/ %# '" >> .cshrc
should do it for tcsh.stevejones said:Install bash.
Doesn't bash show 'user@host path' as default ?
set prompt = "%B%n@%m%b %{\033[35;1m%}%l%{\033[m%} [%{\033[36;1m%}%c04%{\033[m%}]: "
# chsh -s /usr/local/bin/bash
# cd /usr/ports/shells/bash
# make install clean
mickey said:Try something like this and fit to your liking:
Code:set prompt = "%B%n@%m%b %{\033[35;1m%}%l%{\033[m%} [%{\033[36;1m%}%c04%{\033[m%}]: "
The colors are expressed as standard ANSI color escape sequences, so they will probably not work on non ANSI terminals.
[CMD=]\033[3Xm[/CMD] - Sets the text foreground color
[CMD=]\033[4Xm[/CMD] - Sets the text background color
Where 'X' is one of:
0 - black
1 - red
2 - green
3 - yellow
4 - blue
5 - magenta
6 - cyan
7 - white
[CMD=]\033[m[/CMD] - Turns off all text attributes
Multiple attributes may be combined by use of a semicolon ';'. i.e. to set red background and white text:
[CMD=]\033[41;37m[/CMD]