Initial settings for ksh history, prompt and aliases
Out of the box, OpenBSD doesn’t come with a history file set, so when you logoff your history for that session is lost. Here’s how I set the history file and a few favourite aliases. While we’re at it we might as well set the prompt at the same time.
echo `export ENV="$HOME/.kshrc"` >> .profile echo `export PS1='\u@\h:\w\$ '` >> .profile
Put the following in
HISTFILE="$HOME/.ksh_history" HISTSIZE=5000 HISTCONTROL=ignoredups:ignorespace alias la="ls -la" alias h=history alias doas="doas "