From b5776b6716eaaf1afaf1039daa1cea17022f1411 Mon Sep 17 00:00:00 2001 From: Matt Parnell Date: Thu, 20 Oct 2011 21:25:37 -0500 Subject: [PATCH] reduce to one line, per the oh-my-zsh guys... merged or not i use this --- plugins/aliases/aliases.plugin.zsh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/aliases/aliases.plugin.zsh b/plugins/aliases/aliases.plugin.zsh index 451f93394..377312e50 100644 --- a/plugins/aliases/aliases.plugin.zsh +++ b/plugins/aliases/aliases.plugin.zsh @@ -1,4 +1,4 @@ -# These three lines of simple code originally by ilikenwf/Matt Parnell +# This line of simple code originally by ilikenwf/Matt Parnell # simply import the ~/.aliases file if it exists when the plugin is # enabled. @@ -14,6 +14,4 @@ # alias tunnel="ssh -D 3290 user@host.com" # alias vnc="vncviewer -compresslevel 0 -q 0 localhost:2985" -if [ -f ~/.aliases ] ; then - source ~/.aliases -fi +[[ -f ~/.aliases ]] && . ~/.aliases