dotfiles/zsh/.zshrc
2021-05-04 19:40:34 +02:00

38 lines
1015 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
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
}
fpath=($ZDOTDIR/modules/wd $fpath)
# 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
source ~/.local/settings/zsh
autoload -U compinit && compinit -d $XDG_DATA_HOME/zsh/zcompdump