Make sudo, xargs, doas, etc. understand aliases

This commit is contained in:
Alexander Rosenberg 2023-09-03 12:55:05 -07:00
parent feab949e99
commit bda8d4d945
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -43,6 +43,11 @@ alias clip="xclip -selection clipboard"
# I mess this up a lot # I mess this up a lot
alias cd..="cd .." alias cd..="cd .."
# Make xargs, sudo, etc. understand aliases
alias xargs='xargs '
cmd_exists sudo && alias sudo='sudo '
cmd_exists doas && alias doas='doas '
# Neovim stuff # Neovim stuff
if [[ -v NVIM ]]; then if [[ -v NVIM ]]; then
export EDITOR=nvr export EDITOR=nvr