From 56f649e939d8122c6a80286dcd98e8ad112b2e5d Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Sat, 4 Feb 2012 21:10:11 -0800 Subject: [PATCH] Do not try to source the .secrets file if there is none (cherry picked from commit 0002a86a3f4cf5db8c7a623189cd08f8816dfa9d) --- zsh/aliases | 3 --- zsh/zshrc | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/zsh/aliases b/zsh/aliases index 64ea284..8a77501 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -106,9 +106,6 @@ alias mctags=~/.bin/run_tags.rb #'/opt/local/bin/ctags -Rf ./tags *' alias ka9='killall -9' alias k9='kill -9' -# This trick makes sudo understand all my aliases -alias sudo='sudo ' - # Gem install alias sgi='sudo gem install --no-ri --no-rdoc' diff --git a/zsh/zshrc b/zsh/zshrc index 88775bd..7bf0f88 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -22,7 +22,7 @@ source $yadr/zsh/aliases source $yadr/zsh/zsh_aliases # Things I don't want to publish to github -source ~/.secrets +[[ -s "$HOME/.secrets" ]] && source "$HOME/.secrets" # Vim mode bindkey -v