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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user