Skip to content

Commit

Permalink
Shim unlink(1) and sudo(1) on OpenBSD when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alhadis committed Apr 14, 2024
1 parent dba9daa commit 42da935
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ case `uname -s` in
have nvi || alias nvi='vi'
have nex || alias nex='ex'

# Shims for missing/non-portable commands
have sudo || alias sudo='doas'
have unlink || alias unlink='rm'

# Run the following commands as superuser by default
alias chown='doas chown'
alias chgrp='doas chgrp'
Expand Down

0 comments on commit 42da935

Please sign in to comment.