-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.zshrc.antigen
145 lines (115 loc) · 4.58 KB
/
.zshrc.antigen
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
zmodload zsh/zprof
# Terminal 256 colors
export TERM="xterm-256color"
# http://mrjoelkemp.com/2013/06/remapping-iterm2-option-keys-for-fish-terminal/
bindkey "\e\[1\;9C" forward-word
bindkey "\e\[1\;9D" backward-word
bindkey "\e\[dw" backward-kill-word
test -e ~/.dircolors && eval `gdircolors -b ~/.dircolors`
# brew install antigen --HEAD
source $(brew --prefix)/share/antigen/antigen.zsh
# init antigen
# source ~/.antigen.zsh
antigen use oh-my-zsh
# antigen bundle rupa/z
antigen bundles <<EOBUNDLES
git
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-completions
# The heroku tool helper plugin.
heroku
# fzf-z plugin ctrl+G
andrewferrier/fzf-z
robbyrussell/oh-my-zsh plugins/sublime
robbyrussell/oh-my-zsh plugins/z
robbyrussell/oh-my-zsh plugins/rake
robbyrussell/oh-my-zsh plugins/rbenv
robbyrussell/oh-my-zsh plugins/gitignore
robbyrussell/oh-my-zsh plugins/kubectl
robbyrussell/oh-my-zsh plugins/docker
robbyrussell/oh-my-zsh plugins/docker-compose
robbyrussell/oh-my-zsh plugins/helm
robbyrussell/oh-my-zsh plugins/command-not-found
robbyrussell/oh-my-zsh plugins/github
# command autocorrection with thefuck script
robbyrussell/oh-my-zsh plugins/thefuck
# custom aliases
$HOME/projects/dotfiles/zsh_custom
# pure prompt
mafredri/zsh-async
sindresorhus/pure
EOBUNDLES
# OS specific plugins
if [[ $CURRENT_OS == 'OS X' ]]; then
antigen bundle brew
antigen bundle brew-cask
antigen bundle gem
antigen bundle osx
elif [[ $CURRENT_OS == 'Linux' ]]; then
# None so far...
if [[ $DISTRO == 'CentOS' ]]; then
antigen bundle centos
fi
elif [[ $CURRENT_OS == 'Cygwin' ]]; then
antigen bundle cygwin
fi
# NVM integration
export NVM_LAZY_LOAD=true
antigen bundle lukechilds/zsh-nvm
# Tell Antigen that you're done.
antigen apply
export FZF_DEFAULT_OPTS="
--bind 'ctrl-f:page-down,ctrl-b:page-up,ctrl-o:execute(code {})+abort'
--color fg:102,bg:233,hl:65,fg+:15,bg+:234,hl+:108
--color info:108,prompt:109,spinner:108,pointer:168,marker:168
"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# tmux
alias tmux="TERM=screen-256color-bce tmux -u"
DISABLE_AUTO_TITLE=true
# Brew
export PATH="/usr/local/bin:$PATH"
# rbenv
export PATH="$HOME/.rbenv/bin:$PATH"
if type "rbenv" > /dev/null; then
eval "$(rbenv init -)"
fi
# Hazelcast Simulator
export SIMULATOR_HOME=~/hazelcast-simulator
PATH=$SIMULATOR_HOME/bin:$PATH
#thefuck
#eval "$(thefuck --alias)"
# tabtab source for jhipster package
# uninstall by removing these lines or running `tabtab uninstall jhipster`
[[ -f /Users/apple/.config/yarn/global/node_modules/tabtab/.completions/jhipster.zsh ]] && . /Users/apple/.config/yarn/global/node_modules/tabtab/.completions/jhipster.zsh
#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!!
export SDKMAN_DIR="${HOME}/.sdkman" && source "${HOME}/.sdkman/bin/sdkman-init.sh"
# confluent platform
# TEMP - figure out way to switch different versions - oss vs ent, 3.3, 3.4, etc
# symlink
export CONFLUENT_PLATFORM_VERSION=5.1.0
export CONFLUENT_HOME=~/projects/confluent/confluent-ent/$CONFLUENT_PLATFORM_VERSION
#export CONFLUENT_HOME=~/projects/confluent/confluent-oss/$CONFLUENT_PLATFORM_VERSION
export PATH=$CONFLUENT_HOME/bin:$PATH
alias cnfl="confluent"
# tabtab source for serverless package
# uninstall by removing these lines or running `tabtab uninstall serverless`
[[ -f /Users/viktor/.nvm/versions/node/v9.2.0/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.zsh ]] && . /Users/viktor/.nvm/versions/node/v9.2.0/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.zsh
# tabtab source for sls package
# uninstall by removing these lines or running `tabtab uninstall sls`
[[ -f /Users/viktor/.nvm/versions/node/v9.2.0/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.zsh ]] && . /Users/viktor/.nvm/versions/node/v9.2.0/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.zsh
# GCP completion
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc'
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc'
export PATH=$PATH:~/.fabric8/bin
# Go development
export GOPATH="${HOME}/.go"
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
test -d "${GOPATH}" || mkdir "${GOPATH}"
test -d "${GOPATH}/src/github.com" || mkdir -p "${GOPATH}/src/github.com"
#test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
source "/usr/local/opt/kube-ps1/share/kube-ps1.sh"
PROMPT='$(kube_ps1)'$PROMPT
kubeoff
zprof