Files
dotfiles/dot_zshrc.tmpl
2026-05-04 10:09:59 +02:00

62 lines
1.2 KiB
Cheetah
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

autoload -Uz compinit
compinit
setopt correctall
autoload -U promptinit
promptinit
{{ if eq .chezmoi.hostname "gentoo" }}
prompt gentoo
{{ end }}
zstyle ':completion::complete:*' use-cache 1
export HISTFILE=~/.zsh_history
export SAVEHIST=1000
export HISTSIZE=1000
bindkey '^R' history-incremental-search-backward
bindkey '^r' history-incremental-pattern-search-backward
setopt hist_ignore_space
setopt hist_ignore_dups
setopt appendhistory
unsetopt beep
export EDITOR='nvim'
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
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)"
{{ 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