I can set each of the following under HP-UX and Linux, but am having some difficulty under Solaris:
Default prompt:
The following entries don't work at all:
PS1="\u @ \h | \W > "
PS1="\$ID @ \$HOST | \$PWD > "
The following entries work, but the directory doesn't change when physically going to another directory. Still shows original directory.
PS1="$ID @ $HOST | $PWD > "
PS1=" `whoami` @ `uname -n` | `pwd` > "
How can I set a dynamic prompt, where the prompt will change, when changing directories?
Default prompt:
The following entries don't work at all:
PS1="\u @ \h | \W > "
PS1="\$ID @ \$HOST | \$PWD > "
The following entries work, but the directory doesn't change when physically going to another directory. Still shows original directory.
PS1="$ID @ $HOST | $PWD > "
PS1=" `whoami` @ `uname -n` | `pwd` > "
How can I set a dynamic prompt, where the prompt will change, when changing directories?