From LedHed's Wiki
Revision as of 11:56, 23 January 2022 by Ledhed (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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