dotfiles/zsh/zshrc
2020-10-16 23:39:46 +02:00

29 lines
902 B
Bash

bindkey -e
autoload -U compinit && compinit -d ~/.config/zsh/caches/zcompdump
autoload -U promptinit && promptinit
export HISTSIZE=10000
SAVEHIST=$HISTSIZE
HISTFILE=~/.history
setopt inc_append_history
setopt share_history
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='fd -H'
export FZF_CTRL_T_COMMAND='fd -H'
export FZF_DEFAULT_OPTS="-e --multi --layout=reverse --preview='bat --color=always --tabs=2 --style=plain --theme=Nord {}'"
export FZF_CTRL_R_OPTS="-e --layout=reverse --preview=''"
_fzf_compgen_path() {
fd -H . "$1"
}
_fzf_compgen_dir() {
fd -H --type d . "$1"
}
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
source ~/.dotfiles/zsh/p10k.zsh
[ -e ~/.zshrc.local ] && source ~/.zshrc.local