zsh: use long option names in aliases where possible
Makes sense to use long option names when I am not doing the typing, as they are more descriptive than most single letters.
This commit is contained in:
parent
2a16007dfa
commit
406b092b03
1 changed files with 6 additions and 6 deletions
|
@ -3,17 +3,17 @@
|
||||||
if command -v exa >/dev/null 2>&1; then
|
if command -v exa >/dev/null 2>&1; then
|
||||||
# Prefer exa if installed
|
# Prefer exa if installed
|
||||||
alias \
|
alias \
|
||||||
ls="exa -F --group-directories-first --group --links" \
|
ls="exa --classify --group-directories-first --group --links" \
|
||||||
la="ls -a" \
|
la="ls --all" \
|
||||||
lt="ls -lT -I'.git'" \
|
lt="ls --long --tree --ignore-glob'.git'" \
|
||||||
lta="lt -a" \
|
lta="lt --all" \
|
||||||
lsc="ls --color=always" \
|
lsc="ls --color=always" \
|
||||||
ltc="lt --color=always"
|
ltc="lt --color=always"
|
||||||
elif ls --group-directories-first --color=auto >/dev/null 2>&1; then
|
elif ls --group-directories-first --color=auto >/dev/null 2>&1; then
|
||||||
# GNU ls
|
# GNU ls
|
||||||
alias \
|
alias \
|
||||||
ls="ls -hF --group-directories-first --color=auto" \
|
ls="ls --classify --human-readable --group-directories-first --color=auto" \
|
||||||
la="ls -A" \
|
la="ls --almost-all" \
|
||||||
lt="tree --dirsfirst -FI '.git|Spotlight-V100|.fseventsd'" \
|
lt="tree --dirsfirst -FI '.git|Spotlight-V100|.fseventsd'" \
|
||||||
lsc="ls --color=always" \
|
lsc="ls --color=always" \
|
||||||
ltc="tree -C --dirsfirst -FI '.git'"
|
ltc="tree -C --dirsfirst -FI '.git'"
|
||||||
|
|
Loading…
Add table
Reference in a new issue