develop#zsh: fix exa function
This commit is contained in:
parent
5ae733b854
commit
080716f496
2 changed files with 4 additions and 2 deletions
|
@ -33,9 +33,11 @@ in
|
||||||
df = "df -h";
|
df = "df -h";
|
||||||
du = "du -h";
|
du = "du -h";
|
||||||
|
|
||||||
ls = "${pkgs.exa}/bin/exa";
|
ls = "exa";
|
||||||
l = "ls -lhg --git";
|
l = "ls -lhg --git";
|
||||||
la = "l -a";
|
la = "l -a";
|
||||||
|
t = "l -T";
|
||||||
|
ta = "la -T";
|
||||||
|
|
||||||
ps = "${pkgs.procs}/bin/procs";
|
ps = "${pkgs.procs}/bin/procs";
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# pipe exa into PAGER with colors
|
# pipe exa into PAGER with colors
|
||||||
if [[ -t 1 && -n $PAGER ]]; then
|
if [[ -t 1 && -n $PAGER ]]; then
|
||||||
@exa@/bin/exa --color always $@ | $PAGER
|
@exa@/bin/exa --color=always $@ | $PAGER
|
||||||
else
|
else
|
||||||
@exa@/bin/exa $@
|
@exa@/bin/exa $@
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue