From f0bceecb88f01a143c9d4df977c9db473e8618bb Mon Sep 17 00:00:00 2001 From: rjorgenson Date: Tue, 29 Nov 2011 23:45:25 -0700 Subject: [PATCH] added error suppression to tree alias the $(which tree) check general.aliases would ouput an error if the command was not found. Added suppression of that error. --- aliases/available/general.aliases.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aliases/available/general.aliases.bash b/aliases/available/general.aliases.bash index cfd456f..6c722f4 100644 --- a/aliases/available/general.aliases.bash +++ b/aliases/available/general.aliases.bash @@ -46,7 +46,7 @@ alias -- -="cd -" # Go back alias h='history' # Tree -if [ ! -x "$(which tree)" ] +if [ ! -x "$(which tree 2>/dev/null)" ] then alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'" fi -- 2.17.1