-
Notifications
You must be signed in to change notification settings - Fork 2
/
.zshrc
204 lines (168 loc) · 5.44 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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
#### FIG ENV VARIABLES ####
# Please make sure this block is at the start of this file.
[ -s ~/.fig/shell/pre.sh ] && source ~/.fig/shell/pre.sh
#### END FIG ENV VARIABLES ####
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
PRJ=$HOME/Projects
PH=$PRJ/infuseai
PROJECT_PATHS=($PRJ $PH)
export PYENV_VIRTUALENV_DISABLE_PROMPT=1
export EDITOR='nvim'
export VIDIR=$HOME/.vim
export DOC=$HOME/Documents
export PGDATA=/usr/local/var/postgres
export GOPATH=/Users/aaron/.go
export KUBECONFIG=~/.kube/config
export LDFLAGS="-L/usr/local/opt/zlib/lib -L/usr/local/opt/sqlite/lib"
export CPPFLAGS="-I/usr/local/opt/zlib/include -I/usr/local/opt/sqlite/include"
export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig /usr/local/opt/sqlite/lib/pkgconfig"
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
# export TERM=xterm-256color-italic
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="bureau-ruby"
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
# alias
alias g="git"
alias b="brew"
alias ec="envchain"
alias y="yarn"
alias gm="goreman"
alias fm="foreman"
alias zshconfig="vim ~/.zshrc"
alias fy="ydict"
alias py="python"
alias ptt="ssh bbsu@ptt.cc"
alias l="ls -lA1"
alias ld="ll -d"
alias du="du | sort -n | cut -f2- | xargs du -hs"
alias mux=tmuxinator
alias z=zeus
alias vim="nvim"
alias vi=vim
alias v="nvim"
alias sl=ls
alias k=kubectl
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment to change how often before auto-updates occur? (in days)
export UPDATE_ZSH_DAYS=7
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want to disable command autocorrection
# DISABLE_CORRECTION="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
# Uncomment following line if you want to disable marking untracked files under
# VCS as dirty. This makes repository status check for large repositories much,
# much faster.
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(
brew
colored-man-pages
docker
fancy-ctrl-z
git
history
pj
pip
pyenv
python
tmuxinator
urltools
virtualenv
z
zshrc
zsh-autosuggestions
zsh-syntax-highlighting
## Slow plugins ##
# kubectl
# command-not-found
)
source $ZSH/oh-my-zsh.sh
# source $HOME/.bin/tmuxinator.zsh
# Customize to your needs...
#fpath=($HOME/.tmuxinator/completion ${fpath})
#alias tmux="TERM=screen-256color-bce tmux"
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:/usr/local/sbin:$PATH"
export PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export PATH=$PATH:$HOME/.go/bin # Add Go to PATH for scripting
export PATH=$PATH:$HOME/.krew/bin
#AutoFu
#if [ -f ~/.oh-my-zsh/custom/plugins/auto-fu/auto-fu.plugin.zsh ]; then
#source ~/.oh-my-zsh/custom/plugins/auto-fu/auto-fu.plugin.zsh ;
#function zle-line-init () {
#auto-fu-init
#}
#zle -N zle-line-init
#fi
__git_files () {
_wanted files expl 'local files' _files
}
function gi() { curl http://www.gitignore.io/api/$@ ;}
function killp {
kill $(ps -e | awk '{if(NR!=1) { print $4, $1 }}' | pick -do | tail -n +2)
}
# NVM env
#source ~/.nvm/nvm.sh
##### nvm (node version manager) #####
# placeholder nvm shell function
# On first use, it will set nvm up properly which will replace the `nvm`
# shell function with the real one
nvm() {
if [[ -d "${HOME}/.nvm" ]]; then
NVM_DIR="${HOME}/.nvm"
export NVM_DIR
# shellcheck disable=SC1090
source "${NVM_DIR}/nvm.sh"
if [[ -e ~/.nvm/alias/default ]]; then
PATH="${PATH}:${HOME}.nvm/versions/node/$(cat ~/.nvm/alias/default)/bin"
fi
# invoke the real nvm function now
nvm "$@"
else
echo "nvm is not installed" >&2
return 1
fi
}
# Docker Machine
# eval "$(docker-machine env default)"
# Auto Jump config https://github.com/wting/autojump
[[ -s /usr/local/etc/profile.d/autojump.sh ]] && . /usr/local/etc/profile.d/autojump.sh
# color for less and man
export MANPAGER='less -s -M +Gg'
export LESS="--RAW-CONTROL-CHARS"
lesscolors=$HOME/bin/.LESS_TERMCAP
[[ -f $lesscolors ]] && . $lesscolors
# QT
# export PATH="/usr/local/opt/qt/bin:$PATH"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/aaron/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/aaron/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/aaron/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/aaron/google-cloud-sdk/completion.zsh.inc'; fi
autoload -Uz compinit
if [ $(date +'%j') != $(/usr/bin/stat -f '%Sm' -t '%j' ${ZDOTDIR:-$HOME}/.zcompdump) ]; then
compinit
else
compinit -C
fi
eval "$(direnv hook zsh)"
#### FIG ENV VARIABLES ####
# Please make sure this block is at the end of this file.
[ -s ~/.fig/fig.sh ] && source ~/.fig/fig.sh
#### END FIG ENV VARIABLES ####