From: Simon Ruderich Date: Thu, 26 Feb 2009 18:26:17 +0000 (-0600) Subject: Expand aliases when using sudo. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=773eb272e6e630695f437382973619867fb33a9c;p=config%2Fdotfiles.git Expand aliases when using sudo. --- diff --git a/zsh/rc b/zsh/rc index e49885e..1f5e11b 100644 --- a/zsh/rc +++ b/zsh/rc @@ -237,6 +237,9 @@ zstyle ':completion:*:(hg|git)*:*' ignore-line yes # CUSTOM ALIASES AND FUNCTIONS +# Make sure aliases are expanded when using sudo. +alias sudo='sudo ' + # Simplify calls to less, automatically redirects all output. alias -g L='2>&1 | less' # Simplify calls to colordiff, output is also piped through less.