aboutsummaryrefslogtreecommitdiff
path: root/dot_zshrc.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'dot_zshrc.tmpl')
-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)