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'
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user