1

Update NNN config

This commit is contained in:
2024-06-02 18:41:47 +02:00
parent 40ce839652
commit 5f28baecf5
2 changed files with 6 additions and 3 deletions

View File

@ -137,8 +137,8 @@ in {
blk = batify "lsblk -o NAME,LABEL,UUID,FSTYPE,SIZE,FSUSE%,MOUNTPOINT,MODEL"; blk = batify "lsblk -o NAME,LABEL,UUID,FSTYPE,SIZE,FSUSE%,MOUNTPOINT,MODEL";
grep = "grep --color=auto -E"; # grep with extended regex grep = "grep --color=auto -E"; # grep with extended regex
watch = "watch -d -c -n 0.5"; watch = "watch -d -c -n 0.5";
n = "nnncd -a -e"; # Doesn't work with abbrify because I have nnn.override? n = "nnncd -a"; # Doesn't work with abbrify because I have nnn.override?
np = "nnncd -a -P p -e"; np = "nnncd -a -P p";
ssh = "kitty +kitten ssh"; ssh = "kitty +kitten ssh";
# systemd # systemd

View File

@ -16,8 +16,11 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.sessionVariables = { home.sessionVariables = {
# NNN_TERMINAL = "alacritty"; # NNN_TERMINAL = "alacritty";
NNN_PAGER = "bat";
# NNN_FIFO = "/tmp/nnn.fifo"; # For nnn preview # NNN_FIFO = "/tmp/nnn.fifo"; # For nnn preview
NNN_PAGER = "bat";
NNN_OPENER = "xdg-open";
NNN_ARCHIVE = "\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$";
}; };
programs.nnn = { programs.nnn = {