Simplify tree improvements

This commit is contained in:
Fernando Schauenburg 2019-10-30 19:22:06 +01:00
parent 4d1f7305ee
commit 2c37d63937

View file

@ -257,21 +257,14 @@ EOS
fi
}
alias tree="bashrc_tree"
bashrc_tree() {
# The 'tree' alias is not available here, so this calls the actual program.
tree -F --dirsfirst -I '.git|Spotlight-V100|.fseventsd' "$@"
}
alias ltree="bashrc_paged_tree"
bashrc_paged_tree() {
bashrc_tree -C "$@" | less -R
}
##############################################################################
# Add shell functions
##############################################################################
tree() { command tree --dirsfirst -FI '.git|Spotlight-V100|.fseventsd' "$@"; }
ltree() { tree -C "$@" | less -R; }
# Combined mkdir and cd
mkcd() { mkdir -p -- "$1" && cd -P -- "$1"; }