-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
67 lines (57 loc) · 1.68 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
# Setup Oh My ZSH
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="mycandy"
# Configure pyenv
if [[ -d "$HOME/.pyenv" ]]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true"
pyenv virtualenvwrapper_lazy
fi
plugins=(z gnu-utils systemadmin systemd man rsync \
tmux tmuxinator git \
vagrant terraform terragrunt \
aws awsume s3cmd \
docker docker-compose \
pip pipenv httpie pyenv \
node npm nvm \
rust \
ansible \
mvn ant sdk \
golang glide \
kubectl minikube helm \
zsh-completions \
myrtualenvwrapper)
source $ZSH/oh-my-zsh.sh
# Customize
export PATH=$PATH:$HOME/bin:$HOME/bin/local
if [ -f $HOME/.zshrc.local ]; then
source $HOME/.zshrc.local
fi
source $HOME/dotfiles/alias
source $HOME/dotfiles/functions
if [ -f $HOME/.alias.local ]; then
source $HOME/.alias.local
fi
if [ -f $HOME/.functions.local ]; then
source $HOME/.functions.local
fi
export EDITOR=/usr/bin/vim
unsetopt beep
# Configure terminal color for tmux compatibility
if [[ $TERM == xterm ]]; then
TERM=xterm-256color
fi
# Tools variables
export PATH="/usr/local/heroku/bin:$PATH"
[ -f $HOME/.cargo/env ] && source $HOME/.cargo/env
export GOPATH="$HOME/.gopath"
export PATH="$GOPATH/bin:$PATH"
[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ] && \. "$HOME/.sdkman/bin/sdkman-init.sh" # This loads sdkman
if [ -f "$HOME/.nvm" ]; then
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
fi