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.
pull/90/head
rjorgenson 2011-11-29 23:45:25 -07:00
parent e305e48bee
commit f0bceecb88
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ alias -- -="cd -" # Go back
alias h='history' alias h='history'
# Tree # Tree
if [ ! -x "$(which tree)" ] if [ ! -x "$(which tree 2>/dev/null)" ]
then then
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'" alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
fi fi