feat(zsh): idiomatically organise .zprofile .zshenv and .zshrc

This commit is contained in:
2026-03-09 12:08:23 +01:00
parent 7829980f8f
commit d92857428e
5 changed files with 26 additions and 21 deletions

View File

@@ -1,15 +1,17 @@
# zsh history file
export HISTFILE="$XDG_STATE_HOME/zsh/history"
export HISTSIZE=100
# zsh history file
HISTFILE="$XDG_STATE_HOME/zsh/history"
HISTSIZE=10000
SAVEHIST=10000
# gnupg
export GPG_TTY=$(tty)
## pre plugin load
# nvm
export NVM_COMPLETION=true
# zsh autosugestions
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ffffff,bg=cyan,bold,underline"
# zsh autosuggestions
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ffffff,bg=cyan,bold,underline"
# source antidote
source $ZDOTDIR/.antidote/antidote.zsh
source "$ZDOTDIR/.antidote/antidote.zsh"
antidote load
unsetopt autocd
@@ -22,10 +24,10 @@ source "$ZDOTDIR/aliases.zsh"
source "$ZDOTDIR/scripts.zsh"
# completion
fpath=($ZDOTDIR/completions $fpath)
fpath=("$ZDOTDIR/completions" $fpath)
autoload -Uz compinit
compinit -d $XDG_CACHE_HOME/zsh/zcompdump-$ZSH_VERSION
zstyle ':completion:*' cache-path $XDG_CACHE_HOME/zsh/zcompcache
compinit -d "$XDG_CACHE_HOME/zsh/zcompdump-$ZSH_VERSION"
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh/zcompcache"
eval "$(starship init zsh)"
eval "$(direnv hook zsh)"