-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
74 lines (59 loc) · 2.2 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
skip_global_compinit=1
export ZPLUG_HOME="${HOME}/.zplug"
# Check if zplug is installed
if [[ ! -d ~/.zplug ]]; then
git clone https://github.com/zplug/zplug $ZPLUG_HOME
source $ZPLUG_HOME/init.zsh && zplug update --self
fi
source $ZPLUG_HOME/init.zsh
autoload -U compinit && compinit -u -C -d "$ZPLUG_HOME/zcompdump"
zplug "creationix/nvm", use:nvm.sh
zplug "tj/git-extras", use:"etc/git-extras-completion.zsh", defer:3, if:"[[ $(command -v git) ]]"
zplug "tmuxinator/tmuxinator", use:"completion/tmuxinator.zsh", defer:3, if:"[[ $(command -v tmuxinator) ]]"
zplug "denysdovhan/spaceship-zsh-theme", as:theme
zplug "bobsoppe/zsh-ssh-agent", use:"ssh-agent.zsh", from:github
zplug "zsh-users/zsh-completions", depth:1
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-history-substring-search"
zplug "lukechilds/zsh-better-npm-completion", defer:2
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug check || zplug install
zplug load --verbose
if zplug check "zsh-users/zsh-history-substring-search"; then
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
fi
if command -v rbenv &> /dev/null; then
eval "$(rbenv init - zsh --no-rehash)"
fi
#antigen bundle chruby
#antigen bundle docker
#antigen bundle pyenv
#antigen bundle catimg
#antigen bundle vagrant
#
##antigen theme aussiegeek
#antigen theme denysdovhan/spaceship-zsh-theme
#
#if [ "$OSTYPE"="darwin11.0" ]; then
# antigen bundle osx
#fi
#
#antigen bundle unixorn/autoupdate-antigen.zshplugin
#antigen bundle zsh-users/zsh-syntax-highlighting
#antigen bundle zsh-users/zsh-history-substring-search
#antigen bundle zsh-users/zsh-completions src
#antigen bundle lukechilds/zsh-nvm
#
#antigen apply
source ~/.shell/aliases
source ~/.shell/options
source ~/.shell/zshoptions
# direnv
eval "$(direnv hook $0)"
[ -f /opt/apache-maven-3.3.9 ] && sexport PATH=/opt/apache-maven-3.3.9/bin:$PATH
# The next line updates PATH for the Google Cloud SDK.
[ -f /opt/google-cloud-sdk ] && source '/opt/google-cloud-sdk/path.zsh.inc'
# The next line enables shell command completion for gcloud.
[ -f /opt/google-cloud-sdk ] && source '/opt/google-cloud-sdk/completion.zsh.inc'