dotfiles/zsh/.zshrc

38 lines
1015 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-05-04 19:29:17 +02:00
fpath=($ZDOTDIR/modules/wd $fpath)
2021-01-28 00:59:49 +01:00
# theme
2021-05-02 17:27:52 +02:00
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"
2021-01-28 14:01:09 +01:00
fi
2021-03-31 17:35:33 +02:00
# local settings
source ~/.local/settings/zsh