Making ksh history persistent in OpenBSD
January 14, 2009
There’s an environment variable HISTFILE which determines where ksh saves your command history. By default, if HISTFILE is not set, ksh will save to ~/.sh_history. OpenBSD does not, however, include this default – so your command history is lost at the end of each session. That may be what you want, but if not, you can just add a line like this to ~/.profile:
Since ksh doesn’t include
source you can use
. ~/.profile to load your changes.