]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Expand aliases when using sudo.
authorSimon Ruderich <simon@ruderich.org>
Thu, 26 Feb 2009 18:26:17 +0000 (12:26 -0600)
committerSimon Ruderich <simon@ruderich.org>
Thu, 26 Feb 2009 18:27:50 +0000 (12:27 -0600)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index e49885e600f1522bb10a360ef08e4026ea49eba5..1f5e11bcccad3254c3dfdc7c9b693b3a6bbd8d12 100644 (file)
--- 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.