Improve tree aliases
- Remove duplication of options - Add common ignore rules
This commit is contained in:
parent
0b81ef0f68
commit
a13e6694d5
1 changed files with 9 additions and 3 deletions
|
@ -139,11 +139,17 @@ bashrc_customize_aliases() {
|
||||||
|
|
||||||
alias myip="dig +short myip.opendns.com @resolver1.opendns.com"
|
alias myip="dig +short myip.opendns.com @resolver1.opendns.com"
|
||||||
alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date'
|
alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date'
|
||||||
alias tree="tree -F --dirsfirst"
|
alias tree="bashrc_tree"
|
||||||
|
alias ltree="bashrc_paged_tree"
|
||||||
}
|
}
|
||||||
|
|
||||||
ltree() {
|
bashrc_tree() {
|
||||||
tree -C -F --dirsfirst "$@" | less -R
|
# The 'tree' alias is not available here, so this calls the actual program.
|
||||||
|
tree -F --dirsfirst -I '.git|Spotlight-V100|.fseventsd' "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
bashrc_paged_tree() {
|
||||||
|
bashrc_tree -C "$@" | less -R
|
||||||
}
|
}
|
||||||
|
|
||||||
# Send an OSC (Operating System Commmand) to the terminal.
|
# Send an OSC (Operating System Commmand) to the terminal.
|
||||||
|
|
Loading…
Add table
Reference in a new issue