From 444fed593f0c8b8725bf2702b994cc7c2ab1f8cf Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sun, 24 Dec 2023 11:58:09 -0500 Subject: [PATCH] Change fish config to tmpl as well --- dot_config/private_fish/config.fish | 18 ------------- dot_config/private_fish/config.fish.tmpl | 32 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 18 deletions(-) delete mode 100644 dot_config/private_fish/config.fish create mode 100644 dot_config/private_fish/config.fish.tmpl diff --git a/dot_config/private_fish/config.fish b/dot_config/private_fish/config.fish deleted file mode 100644 index c953d7d..0000000 --- a/dot_config/private_fish/config.fish +++ /dev/null @@ -1,18 +0,0 @@ -set -gx KUBE_EDITOR micro -set -gx VISUAL micro -set -gx EDITOR micro -set -gx ANSIBLE_FORCE_COLOR true -set -gx ANSIBLE_HOST_KEY_CHECKING False - -if type -q direnv - direnv hook fish | source -end - -if type -q atuin - atuin init fish | source -end - -if status is-interactive - # Commands to run in interactive sessions can go here - set -g fish_escape_delay_ms 100 -end diff --git a/dot_config/private_fish/config.fish.tmpl b/dot_config/private_fish/config.fish.tmpl new file mode 100644 index 0000000..df79df2 --- /dev/null +++ b/dot_config/private_fish/config.fish.tmpl @@ -0,0 +1,32 @@ +set -gx KUBE_EDITOR micro +set -gx VISUAL micro +set -gx EDITOR micro +set -gx ANSIBLE_FORCE_COLOR true +set -gx ANSIBLE_HOST_KEY_CHECKING False + +fish_add_path "{{ .chezmoi.homeDir }}/bin" +fish_add_path "{{ .chezmoi.homeDir }}/.local/bin" +fish_add_path "{{ .chezmoi.homeDir }}/.cargo/bin" +fish_add_path "{{ .chezmoi.homeDir }}/.krew/bin" +fish_add_path "{{ .chezmoi.homeDir }}/.go/bin" + +{{- if (eq .chezmoi.os "darwin") }} +fish_add_path "/opt/homebrew/opt/curl/bin" +{{- end }} + +if type -q direnv + direnv hook fish | source +end + +if type -q atuin + atuin init fish | source +end + +if type -q starship + starship init fish | source +end + +if status is-interactive + # Commands to run in interactive sessions can go here + set -g fish_escape_delay_ms 100 +end