-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathzshrc
101 lines (76 loc) · 2.22 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
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
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="bira"
CASE_SENSITIVE="true"
DISABLE_AUTO_UPDATE="true"
# DISABLE_CORRECTION="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(
bundler
docker
docker-compose
rsync
rbenv
nodenv
kubectl
kube-ps1
)
source $ZSH/oh-my-zsh.sh
# Load keys into keychain, ignoring errors
ssh-add -K 2>/dev/null
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$(brew --prefix)/share/zsh/site-functions:$FPATH
fi
# Enable zsh autocomplete
autoload -Uz compinit
compinit
# Enable bash autocomplete
autoload bashcompinit
bashcompinit
export LANG=en_US.UTF-8
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
# RBENV
export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
fi
# HUB
export GITHUB_USER="koenpunt"
eval "$(hub alias -s)"
# Heroku Toolbelt
export HEROKU_GIT_HOST_REGEX="heroku\.com(\..*)?"
export PATH=/usr/local/heroku/bin:$PATH
# nodenv
export PATH="$HOME/.nodenv/bin:$PATH"
eval "$(nodenv init -)"
# Node NPM
eval "`command npm completion`"
# direnv
eval "$(direnv hook $SHELL)"
# DigitalOcean
if type doctl > /dev/null; then
source <(doctl completion zsh)
fi
#eval "$(velero completion zsh)"
export PATH=/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH
export JAVA_HOME=$(/usr/libexec/java_home -v 20)
export ANDROID_HOME=~/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/emulator
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
# Rust package manager
export PATH="$HOME/.cargo/bin:$PATH"
# Sketch
export PATH=/Applications/Sketch.app/Contents/Resources/sketchtool/bin/:$PATH
# IntelliJ
export PATH=/Applications/IntelliJ\ IDEA.app/Contents/MacOS:$PATH
# The next line updates PATH for the Google Cloud SDK.
if [ -f "$HOME/google-cloud-sdk/path.zsh.inc" ]; then . "$HOME/google-cloud-sdk/path.zsh.inc"; fi
# The next line enables shell command completion for gcloud.
if [ -f "$HOME/google-cloud-sdk/completion.zsh.inc" ]; then . "$HOME/google-cloud-sdk/completion.zsh.inc"; fi
# AWS
if [ -f "/usr/local/bin/aws_completer" ]; then
complete -C '/usr/local/bin/aws_completer' aws
fi
zmodload -u zsh/stat