Browse files

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.
  • Loading branch information...
1 parent e305e48 commit f0bceecb88f01a143c9d4df977c9db473e8618bb @rjorgenson rjorgenson committed Nov 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 aliases/available/general.aliases.bash
View
2 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

0 comments on commit f0bceec

Please sign in to comment.