From bda8d4d9458b9db887a44bd38b7255aa4e87c12a Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sun, 3 Sep 2023 12:55:05 -0700 Subject: [PATCH] Make sudo, xargs, doas, etc. understand aliases --- init.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.zsh b/init.zsh index 8b7ba38..8b5368d 100644 --- a/init.zsh +++ b/init.zsh @@ -43,6 +43,11 @@ alias clip="xclip -selection clipboard" # I mess this up a lot 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 if [[ -v NVIM ]]; then export EDITOR=nvr