From b30ff1104e27c1129b036556da494c65ca1daa5e Mon Sep 17 00:00:00 2001 From: Steven Lu Date: Wed, 10 Jul 2013 11:47:54 -0400 Subject: [PATCH] Adding /usr/local/bin to path for root in zsh --- zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zshrc b/zshrc index a7212d976..dd7229bf7 100644 --- a/zshrc +++ b/zshrc @@ -41,6 +41,8 @@ source $ZSH/oh-my-zsh.sh # Thankfully the path that is already present is the one that the system has set according to # normal practices. This inserts a few more things that I use from the shell. export PATH=~/bin:~/util:$PATH:/usr/local/share/npm/bin + +[[ $(id -u) == 0 ]] && export PATH=/usr/local/bin/:$PATH # export PAGER=vimpager # zmodload zsh/complist