dotfiles/zsh/.zshrc

37 lines
1022 B
Bash
Raw Normal View History

2021-01-28 00:59:49 +01:00
# key mode
bindkey -e
2021-01-28 00:59:49 +01:00
# global exports and options
setopt share_history
setopt inc_append_history
2021-01-27 18:56:06 +01:00
export HISTSIZE=10000
export SAVEHIST=$HISTSIZE
export HISTFILE=$XDG_DATA_HOME/zsh/history
export LESSHISTFILE='/dev/null'
mkdir -p $XDG_DATA_HOME/zsh
2021-01-28 00:59:49 +01:00
autoload -U compinit && compinit -d $XDG_DATA_HOME/zsh/zcompdump
zstyle ':completion:*' menu select
zstyle ':completion:*' list-colors ''
2021-03-31 17:35:33 +02:00
# aliases
source $ZDOTDIR/aliases.zsh
2021-03-31 17:35:33 +02:00
# plugins & addons
[ -f $XDG_CONFIG_HOME/fzf/fzf.zsh ] && source $ZDOTDIR/fzf.zsh
2021-01-28 00:59:49 +01:00
source $ZDOTDIR/modules/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
2021-03-12 00:54:09 +01:00
export WD_CONFIG=$XDG_CONFIG_HOME/wd_list
wd () {
. $ZDOTDIR/modules/wd/wd.sh
}
2021-01-28 00:59:49 +01:00
# theme
source $ZDOTDIR/p10k.zsh
source $ZDOTDIR/modules/powerlevel10k/powerlevel10k.zsh-theme
2021-01-28 14:01:09 +01:00
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
2021-03-31 17:35:33 +02:00
# local settings
[ -e $XDG_CONFIG_HOME/local/zsh ] && source $XDG_CONFIG_HOME/local/zsh