Sunday, February 15, 2009

ksh PS1 and reloading .profile

OpenBSD comes with a plain "$" prompt in the shell. To spice things up, enter the following in your .profile:


PS1="\u@\h:\w$ "; export PS1


This will give username@host:PWD$.




To reload the .profile after making these changes, type the following:


. $HOME/.profile


There is a space after the first dot. Source