-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsuper.macbook.zshrc
286 lines (208 loc) · 6.79 KB
/
super.macbook.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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
# file: /Users/tim/.zshrc
# computer: MacBook Pro, 16-inch, 2021
# open: atom ~/.zshrc
# update: source ~/.zshrc
#
# related files:
#
# atom ~/.zprofile
# atom ~/.zshenv
#
#
alias sshmac="ssh [email protected]"
alias vmstat="vm_stat 5
"
alias history="history 1"
alias gpt="python gpt_cli.py"
alias addcommand="atom ~/.zshrc"
alias addc="atom ~/.zshrc"
alias uc="source ~/.zshrc"
alias update="source ~/.zshrc"
alias bu="brew update && brew upgrade && brew cleanup && clear"
alias c="clear"
alias h="history"
alias dk="cd /Users/tim/Desktop && clear && pwd"
alias dl="cd /Users/tim/Downloads && clear && pwd"
alias code="cd /Users/tim/code && clear && pwd"
alias deploy="bash deploy_script.sh"
# global git ignore file:
# ~/.gitignore_global
alias addgit="atom ~/.gitignore_global"
# ssh config files:
# ~/.ssh/config
alias addssh="atom ~/.ssh/config"
alias lc="cd /Users/tim/code/lc && clear && pwd"
alias sd="cd /Users/tim/code/lc/SystemDesign && clear && pwd"
alias tim="cd /Users/tim/code/timsiwula.com && clear && pwd"
# django
alias reboot="pkill -f runserver"
alias start="nodemon --exec python3 manage.py runserver && http://127.0.0.1:8000/"
alias portfolio="cd /Users/tim/code/timsiwula.com/app/portfolio-project && clear && pwd && ls -la"
alias timsiwula.com="cd /Users/tim/code/timsiwula.com/app/portfolio-project && clear && pwd && ls -la"
alias website="cd /Users/tim/code/timsiwula.com/app/portfolio-project && clear && pwd && ls -la"
alias timsiwula="cd /Users/tim/code/timsiwula.com/app/portfolio-project && clear && pwd && ls -la"
# python virtualenvwrapper
export PATH="$PATH:/Users/tim/Library/Python/3.8/bin"
# gpg
export GPG_TTY=$TTY
# atom editor github fork local dev
export ATOM_DEV_RESOURCE_PATH=$HOME/code/atom/
# linux commands
alias vmstat="vm_stat"
# conda
export PATH="/usr/local/anaconda3/bin:$PATH"
# golang / go
export GOPATH=$HOME/go/
export GOROOT=/usr/local/go
export PATH="$GOROOT/bin:$PATH"
export PATH="$PATH:$GOPATH/bin"
# export GOPATH="$HOME/go"
# PATH="$GOPATH/bin:$PATH"
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
# grpc
export CXXFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
# java maven mvn ? for grpc protobufs
export PATH=$PATH:/Users/tim/.sdkman/candidates/java/17.0.1-tem/bin
# zsh compinit: insecure directories, run compaudit for list.
# Ignore insecure directories and continue [y] or abort compinit [n]? y
export ZSH_DISABLE_COMPFIX=true
# zsh
# fpath=(~/.zsh/completion $fpath)
# autoload -Uz xport ; compinit
export PATH="$PATH:/Users/tim/Library/Application Support/Coursier/bin"
export NVM_DIR="/Users/tim/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# homebrew silent warning
export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
# gpg auto sign commit messages
#
https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key
if [ -r ~/.zshrc ]; then echo 'export GPG_TTY=$(tty)' >> ~/.zshrc; \
else echo 'export GPG_TTY=$(tty)' >> ~/.zprofile; fi
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
# zsh completion
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
# hadoop
JAVA_HOME="/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home"
export PATH=$PATH:$JAVA_HOME/bin
## HADOOP env variables
export HADOOP_HOME="/usr/local/Cellar/hadoop/3.3.1/libexec"
export PATH=$PATH:$HADOOP_HOME/bin
export PATH=$PATH:$HADOOP_HOME/sbin
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
export HADOOP_CLASSPATH=${JAVA_HOME}/lib/tools.jar
## HIVE env variables
export HIVE_HOME=/usr/local/Cellar/hive/3.1.2_3/libexec
export PATH=$PATH:/$HIVE_HOME/bin
export GPG_TTY=$(tty)
export PATH="/opt/homebrew/opt/bison/bin:$PATH"
# apache thrift
export PATH="/usr/local/opt/[email protected]/bin:$PATH"export GPG_TTY=$(tty)
source ~/.bash_profile
# rabbit mq server
export PATH=$PATH:/usr/local/sbin
# flutter
export PATH="$PATH:/Users/tim/flutter/bin"
# flutter very_good cli tool
export PATH="$PATH":"$HOME/.pub-cache/bin"
## [Completion]
## Completion scripts setup. Remove the following line to uninstall
# [[ -f /Users/tim/.dart-cli-completion/zsh-config.zsh ]] && . /Users/tim/.dart-cli-completion/zsh-config.zsh ||
true
## [/Completion]
## openai chatgpt api key
export OPENAI_API_KEY='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'
export ELEVENLABS_API_KEY='353c513f66b60a886e4ec219fe2baaec'
# github personal access token (2023)
export GITHUB_API_KEY='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'
# CocoaPods -- https://guides.cocoapods.org/using/getting-started.html#installation
export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH
# java
export JAVA_HOME=$(/usr/libexec/java_home)
# jenv java version manager
export PATH="$HOME/.jenv/bin:$PATH"
# eval "$(jenv init -)"
# see if works
# jenv versions
#
# * system (set by /Users/tim/.jenv/version)
#
#
# python
export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.8/bin"
export PATH="$PATH:/Users/tim/Library/Python/3.8/bin"
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
alias python=/usr/bin/python3
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)
export GPG_TTY=$(tty)