fish: for root, do not source env and abbrs

This commit is contained in:
inkch 2024-01-17 17:44:13 +09:00
parent 3dc55ac87b
commit 60c33767a2

View File

@ -1,10 +1,14 @@
set -x 0 fish set -x 0 fish
{{- if ne .chezmoi.username "root" -}}
source $HOME/.config/fish/env.fish source $HOME/.config/fish/env.fish
{{- end }}
# ONLY for interactive shell # ONLY for interactive shell
if status --is-interactive if status --is-interactive
{{- if ne .chezmoi.username "root" -}}
source $HOME/.config/fish/abbreviations.fish source $HOME/.config/fish/abbreviations.fish
{{- end }}
set -q fish_private_mode && set -x FISH_IS_IN_PRIVATE 1 set -q fish_private_mode && set -x FISH_IS_IN_PRIVATE 1
command -v zoxide > /dev/null && zoxide init fish | source command -v zoxide > /dev/null && zoxide init fish | source
command -v starship > /dev/null && starship init fish | source command -v starship > /dev/null && starship init fish | source