aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablu <me@pablu.de>2026-07-24 22:26:32 +0200
committerPablu <me@pablu.de>2026-07-24 22:26:32 +0200
commit3f66debcc79bd995797c029338de36a0b463f20f (patch)
tree5a461e2b58c82ae518b18fc331ed7e13253f0ef0
parentd7dc4b64ba620934e80daccca994d4615e2c37a3 (diff)
fix zshrc conflict
-rw-r--r--dot_zshrc.tmpl14
1 files changed, 13 insertions, 1 deletions
diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl
index 7ea377a..c1d46e9 100644
--- a/dot_zshrc.tmpl
+++ b/dot_zshrc.tmpl
@@ -5,8 +5,18 @@ if [ "$TMUX" = "" ]; then tmux new-session -A -s default; fi
{{ end }}
autoload -Uz compinit
+
+{{ if eq .chezmoi.os "darwin" }}
+
+export COMPINIT_IGNORE_INSECURE=1
+compinit -u
+
+{{ else }}
+
compinit
+{{ end }}
+
setopt correctall
autoload -U promptinit
@@ -39,8 +49,11 @@ alias ls='eza --icons=always'
path+=("/home/pablu/.cargo/bin")
export PATH
{{ else if eq .chezmoi.os "darwin" }}
+
+eval "$(/opt/homebrew/bin/brew shellenv)"
PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH
+
{{ else if eq .chezmoi.hostname "ubuntu" }}
path+=("/home/ubuntu/nvim-linux-x86_64/bin")
export PATH
@@ -59,7 +72,6 @@ source <(COMPLETE=zsh jj)
{{ else if eq .chezmoi.os "darwin" }}
-eval "$(/opt/homebrew/bin/brew shellenv)"
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source <(kubectl completion zsh)
source <(kubebuilder completion zsh)