Simplify tree improvements
This commit is contained in:
parent
4d1f7305ee
commit
2c37d63937
1 changed files with 4 additions and 11 deletions
|
@ -257,21 +257,14 @@ EOS
|
||||||
fi
|
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
|
# Add shell functions
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
tree() { command tree --dirsfirst -FI '.git|Spotlight-V100|.fseventsd' "$@"; }
|
||||||
|
|
||||||
|
ltree() { tree -C "$@" | less -R; }
|
||||||
|
|
||||||
# Combined mkdir and cd
|
# Combined mkdir and cd
|
||||||
mkcd() { mkdir -p -- "$1" && cd -P -- "$1"; }
|
mkcd() { mkdir -p -- "$1" && cd -P -- "$1"; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue