Linux : Bash tweaks
This page last changed on Feb 28, 2006 by Kees de Kooter
Change the appearance of the prompt by adding th following line to .bashrc:
PS1="[<backslash>u<at sign><backslash>h <backslash>w]<backslash>n<dollar sign> "
This will display a prompt containing user, host name and current dir on the first line. The command can be entered on the next line.
Change the appearance of the TERM TITLE by adding the following line to .bashrc or .bash_profile :
PROMPT_COMMAND='echo -ne "<backslash>033]0;${USER}@${HOSTNAME}: ${PWD}<backslash>007"'
This will display in the title of your term user,hostname and current dir. remy