From 7f67a66f837c34469dc0075ca0cc81ca8547d23b Mon Sep 17 00:00:00 2001 From: inkch Date: Mon, 20 Jan 2025 19:40:39 +0900 Subject: [PATCH] fish: change nnn bookmarks (env variable) --- dot_config/private_fish/env.fish.tmpl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dot_config/private_fish/env.fish.tmpl b/dot_config/private_fish/env.fish.tmpl index 46bdaeb..98a9c41 100644 --- a/dot_config/private_fish/env.fish.tmpl +++ b/dot_config/private_fish/env.fish.tmpl @@ -40,8 +40,14 @@ set -x LESS '-RI' set -x LESSHISTFILE '-' # nnn (filemanager) settings -set -x NNN_CONTEXT_COLORS '4231' -set -x NNN_BMS 'j:/mnt/hdd2;l:/mnt/hdd2/vids/films;m:/mnt/;h:/mnt/hdd/;d:~/dl;t:~/dl/torrent;.:~/.config' +if type -q nnn + set -x NNN_CONTEXT_COLORS '4231' + {{- if eq .chezmoi.osRelease.id "arch" }} + set -x NNN_BMS 'j:/mnt/hdd2;l:/mnt/hdd2/vids/films;m:/mnt/;h:/mnt/hdd/;d:~/dl;t:/mnt/hdd/torrent;.:~/.config' + {{- else if eq .chezmoi.osRelease.id "buzz" }} + set -x NNN_BMS 'u:/usbkey;m:/mnt/;d:~/dl;t:~/dl/torrent;.:~/.config' + {{ end }} +end # python set -x PYTHONSTARTUP $XDG_CONFIG_HOME/pythonrc