mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
rewrite ll
as a shell function
This commit is contained in:
parent
a40c7799b9
commit
7675c778cf
1 changed files with 10 additions and 10 deletions
20
home/shrc
20
home/shrc
|
@ -88,7 +88,16 @@ if [ "$LANG" != "en_US.UTF-8" ] && [ "$LANG" != "en_CA.UTF-8" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# aliases {{{1
|
# simple commands and aliases {{{1
|
||||||
|
|
||||||
|
### @ ll - list files verbosely, fancily, ordered, but not recursively.
|
||||||
|
if has lr; then
|
||||||
|
ll() { lr -1lshGG -o tev "$@" | less; }
|
||||||
|
elif has lr.com; then # https://eaguru.guru/t/lr.com
|
||||||
|
ll() { lr.com -1lshGG -o tuev "$@" | less; }
|
||||||
|
else
|
||||||
|
ll() { ls -lAX --group-directories-first --color=force "$@" | less; }
|
||||||
|
fi
|
||||||
|
|
||||||
# enable colors {{{2
|
# enable colors {{{2
|
||||||
|
|
||||||
|
@ -158,15 +167,6 @@ alias eamv='ea move' ### @- invoke [`ea move`.](#ea)
|
||||||
alias eacp='ea copy' ### @- invoke [`ea copy`.](#ea)
|
alias eacp='ea copy' ### @- invoke [`ea copy`.](#ea)
|
||||||
alias earm='ea delete' ### @- invoke [`ea delete`.](#ea)
|
alias earm='ea delete' ### @- invoke [`ea delete`.](#ea)
|
||||||
|
|
||||||
### @ ll - list files verbosely, fancily, ordered, but not recursively.
|
|
||||||
if has lr; then
|
|
||||||
alias ll='ify less lr -1lshGG -o tev'
|
|
||||||
elif has lr.com; then # https://eaguru.guru/t/lr.com
|
|
||||||
alias ll='ify less lr.com -1lshGG -o tuev'
|
|
||||||
else
|
|
||||||
alias ll='ify less ls -lAX --group-directories-first --color=force'
|
|
||||||
fi
|
|
||||||
|
|
||||||
# providing extra functionality {{{2
|
# providing extra functionality {{{2
|
||||||
|
|
||||||
alias diff="git diff --color=auto --no-ext-diff --no-index --no-prefix" ### @- use git's diff subcommand for general diffing.
|
alias diff="git diff --color=auto --no-ext-diff --no-index --no-prefix" ### @- use git's diff subcommand for general diffing.
|
||||||
|
|
Loading…
Add table
Reference in a new issue