From 4f604c77374590d4da8741fe51ccd67f037f4463 Mon Sep 17 00:00:00 2001 From: inkch Date: Tue, 21 Jan 2025 15:34:39 +0900 Subject: [PATCH] fish: fix if-else condition for nnn environment variable --- dot_config/private_fish/env.fish.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_config/private_fish/env.fish.tmpl b/dot_config/private_fish/env.fish.tmpl index f25103b..4d46f2e 100644 --- a/dot_config/private_fish/env.fish.tmpl +++ b/dot_config/private_fish/env.fish.tmpl @@ -42,11 +42,11 @@ set -x LESSHISTFILE '-' # nnn (filemanager) settings if type -q nnn set -x NNN_CONTEXT_COLORS '4231' - {{- if eq .chezmoi.osRelease.id "arch" }} + {{- if eq .chezmoi.hostname "arch" }} set -x NNN_BMS 'm:/mnt/;h:/mnt/hdd/;t:/mnt/hdd/torrent;v:/mnt/hdd/vids;B:/mnt/hdd/bass;b:/mnt/hdd/books;M:/mnt/hdd/books/manga;d:~/dl;.:~/.config' - {{- else if eq .chezmoi.osRelease.id "buzz" }} + {{- else if eq .chezmoi.hostname "buzz" }} set -x NNN_BMS 'u:/usbkey;m:/mnt/;d:~/dl;t:~/dl/torrent;.:~/.config' - {{ end }} + {{- end }} end # python