dotfiles/zsh/.zshrc

43 lines
1.1 KiB
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
2021-01-27 18:56:06 +01:00
export HISTSIZE=10000
export SAVEHIST=$HISTSIZE
export HISTFILE=$XDG_DATA_HOME/zsh/history
2021-05-11 14:24:48 +02:00
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_SAVE_NO_DUPS
setopt HIST_REDUCE_BLANKS
2021-05-11 15:17:44 +02:00
setopt SHARE_HISTORY
2021-05-11 14:24:48 +02:00
2021-01-27 18:56:06 +01:00
export LESSHISTFILE='/dev/null'
mkdir -p $XDG_DATA_HOME/zsh
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-21 00:48:47 +02:00
if [ ! $_P9K_TTY = '/dev/tty.*' ]; then
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
2021-01-28 14:01:09 +01:00
fi
2021-03-31 17:35:33 +02:00
# local settings
source ~/.local/settings/zsh
2021-05-04 19:40:34 +02:00
autoload -U compinit && compinit -d $XDG_DATA_HOME/zsh/zcompdump