From 60c33767a2f195b54e949594a5fb45e06a32a1a9 Mon Sep 17 00:00:00 2001 From: inkch Date: Wed, 17 Jan 2024 17:44:13 +0900 Subject: [PATCH] fish: for `root`, do not source env and abbrs --- dot_config/private_fish/config.fish.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot_config/private_fish/config.fish.tmpl b/dot_config/private_fish/config.fish.tmpl index 2f42982..858ea16 100644 --- a/dot_config/private_fish/config.fish.tmpl +++ b/dot_config/private_fish/config.fish.tmpl @@ -1,10 +1,14 @@ set -x 0 fish +{{- if ne .chezmoi.username "root" -}} source $HOME/.config/fish/env.fish +{{- end }} # ONLY for interactive shell if status --is-interactive + {{- if ne .chezmoi.username "root" -}} source $HOME/.config/fish/abbreviations.fish + {{- end }} set -q fish_private_mode && set -x FISH_IS_IN_PRIVATE 1 command -v zoxide > /dev/null && zoxide init fish | source command -v starship > /dev/null && starship init fish | source