dotfiles/zsh/.zshrc

37 lines
1022 B
Bash

# key mode
bindkey -e
# 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'
mkdir -p $XDG_DATA_HOME/zsh
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