38 lines
916 B
Bash
38 lines
916 B
Bash
# history
|
|
HISTFILE="$XDG_STATE_HOME/zsh/history"
|
|
HISTSIZE=10000
|
|
SAVEHIST=10000
|
|
setopt HIST_IGNORE_DUPS # skip consecutive duplicates
|
|
setopt HIST_IGNORE_SPACE # skip commands starting with space
|
|
setopt SHARE_HISTORY # share history across sessions
|
|
setopt HIST_REDUCE_BLANKS # strip extra whitespace
|
|
|
|
# gnupg
|
|
export GPG_TTY=$(tty)
|
|
|
|
## pre plugin load
|
|
# zsh autosuggestions
|
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ffffff,bg=cyan,bold,underline"
|
|
|
|
# source antidote
|
|
source "$ZDOTDIR/.antidote/antidote.zsh"
|
|
antidote load
|
|
|
|
unsetopt autocd
|
|
|
|
# ggman
|
|
eval "$(ggman shellrc)"
|
|
|
|
# custom functions and aliases
|
|
source "$ZDOTDIR/aliases.zsh"
|
|
source "$ZDOTDIR/scripts.zsh"
|
|
|
|
# completion
|
|
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"
|
|
|
|
eval "$(starship init zsh)"
|
|
eval "$(direnv hook zsh)"
|