forked from pub-solar/os
develop#zsh: send configuration.nix
configurations COPYING flake.lock flake.nix lib local pkgs profiles README.md secrets users output to PAGER
This commit is contained in:
parent
28a9b4acc4
commit
5fb8b0b1fa
|
@ -98,6 +98,7 @@ in
|
||||||
|
|
||||||
ripgrep = "${pkgs.ripgrep}";
|
ripgrep = "${pkgs.ripgrep}";
|
||||||
man = "${pkgs.man}";
|
man = "${pkgs.man}";
|
||||||
|
exa = "${pkgs.exa}";
|
||||||
|
|
||||||
installPhase = let
|
installPhase = let
|
||||||
basename = "\${file##*/}";
|
basename = "\${file##*/}";
|
||||||
|
|
6
profiles/develop/zsh/functions/exa
Normal file
6
profiles/develop/zsh/functions/exa
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# pipe exa into PAGER with colors
|
||||||
|
if [[ -t 1 && -n $PAGER ]]; then
|
||||||
|
@exa@/bin/exa --color always $@ | $PAGER
|
||||||
|
else
|
||||||
|
@exa@/bin/exa $@
|
||||||
|
fi
|
|
@ -1,4 +1,4 @@
|
||||||
# pipe rg into less with colors
|
# pipe rg into PAGER with colors
|
||||||
if [[ -t 1 && -n $PAGER ]]; then
|
if [[ -t 1 && -n $PAGER ]]; then
|
||||||
@ripgrep@/bin/rg -p $@ | $PAGER
|
@ripgrep@/bin/rg -p $@ | $PAGER
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue