# key mode bindkey -v bindkey '^?' backward-delete-char bindkey "^A" vi-beginning-of-line bindkey "^E" vi-end-of-line bindkey "^P" up-line-or-history bindkey "^N" down-line-or-history bindkey "^K" forward-char bindkey "^U" kill-whole-line bindkey -r "^[[A" bindkey -r "^[[B" bindkey -r "^[[D" bindkey -r "^[[C" mkdir -p $XDG_DATA_HOME/zsh # global exports and options setopt share_history setopt inc_append_history export HISTSIZE=10000 export SAVEHIST=$HISTSIZE export HISTFILE=$XDG_DATA_HOME/zsh/history export LESSHISTFILE='/dev/null' autoload -U compinit && compinit -d $XDG_DATA_HOME/zsh/zcompdump zstyle ':completion:*' menu select zstyle ':completion:*' list-colors '' # aliases source $ZDOTDIR/aliases.zsh # plugins & addons [ -f $XDG_CONFIG_HOME/fzf/fzf.zsh ] && source $ZDOTDIR/fzf.zsh source $ZDOTDIR/modules/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh export WD_CONFIG=$XDG_CONFIG_HOME/wd_list wd () { . $ZDOTDIR/modules/wd/wd.sh } # theme source $ZDOTDIR/p10k.zsh source $ZDOTDIR/modules/powerlevel10k/powerlevel10k.zsh-theme if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi # local settings [ -e $XDG_CONFIG_HOME/local/zsh ] && source $XDG_CONFIG_HOME/local/zsh