2020-10-01 17:06:17 +02:00
|
|
|
bindkey -e
|
2020-10-05 12:24:12 +02:00
|
|
|
autoload -U compinit && compinit -d ~/.config/zsh/caches/zcompdump
|
2020-10-05 12:14:33 +02:00
|
|
|
autoload -U promptinit && promptinit
|
2020-10-01 17:06:17 +02:00
|
|
|
|
2020-10-05 12:14:33 +02:00
|
|
|
export HISTSIZE=10000
|
|
|
|
SAVEHIST=$HISTSIZE
|
|
|
|
HISTFILE=~/.history
|
|
|
|
setopt inc_append_history
|
|
|
|
setopt share_history
|
2020-01-10 23:06:53 +01:00
|
|
|
|
2020-02-01 17:58:00 +01:00
|
|
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
2020-10-20 16:33:58 +02:00
|
|
|
export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.config/fdignore.local'
|
|
|
|
export FZF_CTRL_T_COMMAND='fd -H -L --ignore-file ~/.config/fdignore.local'
|
2020-10-17 19:55:12 +02:00
|
|
|
export FZF_DEFAULT_OPTS="-e --multi --layout=reverse --preview='bat --color=always --tabs=2 --style=plain --theme=gruvbox {}'"
|
2020-10-02 23:34:04 +02:00
|
|
|
export FZF_CTRL_R_OPTS="-e --layout=reverse --preview=''"
|
2020-03-03 12:46:21 +01:00
|
|
|
_fzf_compgen_path() {
|
2020-10-20 16:33:58 +02:00
|
|
|
fd -H -L --ignore-file ~/.config/fdignore.local . "$1"
|
2020-03-03 12:46:21 +01:00
|
|
|
}
|
|
|
|
_fzf_compgen_dir() {
|
2020-10-20 16:33:58 +02:00
|
|
|
fd -H -L --ignore-file ~/.config/fdignore.local --type d . "$1"
|
2020-03-03 12:46:21 +01:00
|
|
|
}
|
2020-02-01 17:58:00 +01:00
|
|
|
|
2020-10-05 12:14:33 +02:00
|
|
|
source ~/.config/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
|
|
source ~/.config/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
|
|
source ~/.config/zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
|
2020-09-22 23:03:51 +02:00
|
|
|
source ~/.dotfiles/zsh/p10k.zsh
|
|
|
|
|
2020-10-20 15:33:33 +02:00
|
|
|
[ -e ~/.config/zsh/local.zsh ] && source ~/.config/zsh/local.zsh
|