aboutsummaryrefslogtreecommitdiff
path: root/dot_zshrc.tmpl
diff options
context:
space:
mode:
authorZam Kokott <zam.kokott@bwi.de>2026-05-04 10:09:59 +0200
committerZam Kokott <zam.kokott@bwi.de>2026-05-04 10:09:59 +0200
commitbcf2cd8c9ec6f3c55a229fc14cb6c089a38e78fd (patch)
tree1c4ab8be450129ebe32eef7b6c56ca75d10aa4e6 /dot_zshrc.tmpl
parenteab9bdfe94f08592a868709e71de0f9efedb22fc (diff)
Update .zshrc
Diffstat (limited to 'dot_zshrc.tmpl')
-rw-r--r--dot_zshrc.tmpl17
1 files changed, 15 insertions, 2 deletions
diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl
index b6ffeee..9b56833 100644
--- a/dot_zshrc.tmpl
+++ b/dot_zshrc.tmpl
@@ -29,20 +29,33 @@ alias vim='nvim'
alias cd='z'
alias ls='eza --icons=always'
+{{ if eq .chezmoi.os "darwin" }}
+path="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
+{{ end }}
+
export path
-{{ if eq .chezmoi.hostname "gentoo" }}
+source <(kubectl completion zsh)
+source <(kubebuilder completion zsh)
+source <(chezmoi completion zsh)
+
type starship_zle-keymap-select >/dev/null || \
{
eval "$(starship init zsh)"
}
eval "$(zoxide init zsh)"
-eval "$(direnv hook zsh)"
+{{ if eq .chezmoi.hostname "gentoo" }}
+
+eval "$(direnv hook zsh)"
source /usr/share/zsh/site-functions/zsh-autosuggestions.zsh
source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh
+
{{ else if eq .chezmoi.os "darwin" }}
+eval "$(/opt/homebrew/bin/brew shellenv)"
+source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
+
{{ end }}
fastfetch