51 lines
921 B
Bash
51 lines
921 B
Bash
export GPG_TTY=$(tty)
|
|
|
|
typeset -U PATH
|
|
|
|
source $ZDOTDIR/aliases
|
|
source $ZDOTDIR/functions
|
|
|
|
source $ZDOTDIR/prompt
|
|
|
|
# Larger history
|
|
HISTSIZE=20000
|
|
HISTFILE=~/.zsh_history
|
|
SAVEHIST=20000
|
|
|
|
# be like vim
|
|
bindkey -v
|
|
|
|
setopt complete_in_word
|
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
|
|
|
setopt auto_cd
|
|
|
|
if which direnv > /dev/null; then
|
|
eval "$(direnv hook zsh)"
|
|
fi
|
|
|
|
if which rbenv > /dev/null; then
|
|
eval "$(rbenv init --no-rehash -)"
|
|
(rbenv rehash &) 2> /dev/null
|
|
fi
|
|
|
|
if which nodenv > /dev/null; then
|
|
eval "$(nodenv init --no-rehash -)"
|
|
(nodenv rehash &) 2> /dev/null
|
|
fi
|
|
|
|
if which pyenv > /dev/null; then
|
|
eval "$(pyenv init --no-rehash -)"
|
|
(pyenv rehash &) 2> /dev/null
|
|
fi
|
|
|
|
autoload compinit -Uz
|
|
setopt EXTENDEDGLOB
|
|
if [[ -n ${ZDOTDIR}/.zcompdump(#qN.m+1) ]]; then
|
|
compinit
|
|
else
|
|
compinit -C
|
|
fi
|
|
unsetopt EXTENDEDGLOB
|
|
|
|
[ -f $XDG_CONFIG_HOME/fzf/fzf.zsh ] && source $XDG_CONFIG_HOME/fzf/fzf.zsh
|