-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
56 lines (42 loc) · 1.28 KB
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Source Prezto.
if [[ -s "$HOME/.zprezto/init.zsh" ]]; then
source "$HOME/.zprezto/init.zsh"
fi
export TERM='xterm-256color'
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_FIND_NO_DUPS
setopt HIST_REDUCE_BLANKS
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_INSTALL_UPGRADE=1
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
eval "$(scmpuff init --shell=zsh --aliases=false)"
source ~/.aliases
source ~/.functions
[ -s ~/.localrc ] && source ~/.localrc
source ~/.nvm.zsh
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zplug/init.zsh
zplug "lib/completion", from:oh-my-zsh
zplug "modules/prompt", from:prezto
zplug "modules/directory", from:prezto
zplug "modules/osx", from:prezto
zplug "jeffreytse/zsh-vi-mode"
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "MichaelAquilina/zsh-autoswitch-virtualenv"
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
zplug load
function zvm_after_init() {
# otherwise zsh-vi-mode clobbers ^R binding
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
}