From 773eb272e6e630695f437382973619867fb33a9c Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 26 Feb 2009 12:26:17 -0600 Subject: [PATCH] Expand aliases when using sudo. --- zsh/rc | 3 +++ 1 file changed, 3 insertions(+) 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. -- 2.45.2