From LedHed's Wiki
Jump to: navigation, search
(Created page with "== 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...")
 
 
Line 8: Line 8:
  
 
Now create ~/.kshrc
 
Now create ~/.kshrc
  alias    ll="ls -lsah"
+
alias    ll="ls -lsah"
  alias    service=rcctl
+
alias    service=rcctl
  
  

Latest revision as of 12:42, 23 January 2022

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