I'm using Korn Shell on Solaris and currently my PS1 env var is:
PS1="${HOSTNAME}:\${PWD} \$ "
And the prompt displays: hostname:/full/path/to/current/directory $
However, I'd like it to display: hostname:directory $
In other words, how can I display just the hostname and the name of the current directory, i.e. tmp
or ~
or public_html
etc etc?