Fix sudo not expanding aliases

This commit is contained in:
Marko Korhonen 2023-11-01 16:35:23 +02:00
parent f633456d02
commit 1e693490d2
No known key found for this signature in database
GPG Key ID: A7F78BCB859CD890

View File

@ -1,3 +1,8 @@
# Fix sudo and doas not expanding aliases
# see: https://unix.stackexchange.com/questions/148545/why-does-sudo-ignore-aliases
alias sudo='sudo '
alias doas='doas '
# git shorthands
alias gc='git commit'
alias gac='ga && gc'