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
parent
e305e48bee
commit
f0bceecb88
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue