From LedHed's Wiki
Jump to: navigation, search

Overview

I started using OpenBSD and found that some of the command aliases I'm used to using in other distributions weren't there. Naturally I went looking for ~/.kshrc but was surprised to find it wasn't there. There was .cshrc but edits to that file weren't working (probably because the default shell in OpenBSD is ksh).


How to add Aliases

Edit ~/.profile and add:

export ENV=$HOME/.kshrc

Now create ~/.kshrc

alias     ll="ls -lsah"
alias     service=rcctl


References

https://unix.stackexchange.com/questions/476065/openbsd-how-does-one-set-an-alias