general.aliases.bash: use native tree if [ -x ] ....

pull/76/head
Antono Vasiljev 2011-08-12 04:08:11 +03:00
parent 818e687790
commit 89da5f9cec
1 changed files with 8 additions and 4 deletions

View File

@ -39,13 +39,17 @@ alias piano="pianobar"
alias ..='cd ..' # Go up one directory
alias ...='cd ../..' # Go up two directories
alias ....='cd ../../..' # Go up two directories
alias -- -="cd -" # Go back
# Shell History
alias h='history'
# Tree
if [ ! -x "$(which tree)" ]
then
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
fi
# Directory
alias md='mkdir -p'