-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.zshrc
171 lines (121 loc) · 4.99 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
# Fig pre block. Keep at the top of this file.
if [ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]
then
fi
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
export PGHOST=localhost
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
ZSH_THEME="robbyrussell"
# 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)
# Add wisely, as too many plugins slow down shell startup.
plugins=()
# User configuration
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/opt/coreutils/libexec/gnubin:$PATH"
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
source $ZSH/oh-my-zsh.sh
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
# [[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh # This loads NVM
export PATH="/usr/local/mysql/bin:$PATH"
export PATH=$PATH:/usr/local/opt/go/libexec/bin
export PATH=$HOME/dotfiles/bin:$PATH
export GOPATH=~/go
# shell
source ~/dotfiles/shell/aliases.sh
# git
source ~/dotfiles/git/git-functions.sh
source ~/dotfiles/git/git-aliases.sh
source ~/dotfiles/shell/function.sh
# utils
source ~/dotfiles/utils/z/z.sh
# others
if [ -f "$HOME/dotfiles/.profile" ]
then
source ~/.profile
fi
if [ -f "$HOME/dotfiles/local/.env" ]
then
source ~/dotfiles/local/.env
fi
if [ -f "$HOME/dotfiles/local/.alias" ]
then
source ~/dotfiles/local/.alias
fi
# eval $(thefuck --alias)
# tabtab source for serverless package
# uninstall by removing these lines or running `tabtab uninstall serverless`
[[ -f /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.zsh ]] && . /usr/local/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 /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.zsh ]] && . /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.zsh
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
export PATH="/usr/local/opt/icu4c/bin:$PATH"
export PATH="/usr/local/opt/icu4c/sbin:$PATH"
export PATH="/usr/local/opt/node@8/bin:$PATH"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# export JAVA_HOME=$(/usr/libexec/java_home)
export JAVA_HOME=/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home
# export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
# export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home
# export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home
# export PATH=$PATH:/usr/local/mysql/bin
export PATH="/usr/local/opt/mysql@5.6/bin:$PATH"
export PATH="/usr/local/opt/node@12/bin:$PATH"
[[ -r "/usr/local/opt/git-extras/share/git-extras/git-extras-completion.zsh" ]] && source /usr/local/opt/git-extras/share/git-extras/git-extras-completion.zsh
export PATH="/usr/local/opt/ncurses/bin:$PATH"
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
export PATH="/usr/local/opt/node@14/bin:$PATH"
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
export GOPATH=$HOME/go
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
# Python 3
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
fi
if command -v op 1>/dev/null 2>&1; then
eval "$(op completion zsh)"; compdef _op op
fi
# https://github.com/sindresorhus/pure
fpath+=($HOME/dotfiles/utils/pure)
autoload -U promptinit; promptinit
prompt pure
export N_PREFIX=$HOME/.n
export PATH=$N_PREFIX/bin:$PATH
# Fig post block. Keep at the bottom of this file.
if [ -f "$HOME/.fig/shell/zshrc.post.zsh" ]
then
fi
# #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"
export PATH="$PATH:/Users/cb-it-01-1342/.bin"
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
export PATH="/opt/homebrew/lib/ruby/gems/2.6.0/bin:$PATH"
export PATH="/opt/homebrew/opt/ruby@2.6/bin:$PATH"
export PATH="/opt/homebrew/opt/mongodb-community@4.4/bin:$PATH"
export PATH="/opt/homebrew/opt/postgresql@15/bin:$PATH"
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
# source "$HOME/.sdkman/bin/sdkman-init.sh"
# bun completions
[ -s "/Users/cb-it-01-1342/.bun/_bun" ] && source "/Users/cb-it-01-1342/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
PATH=~/.console-ninja/.bin:$PATH
eval "$(atuin init zsh)"
# pnpm
export PNPM_HOME="$HOME/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
[ -s "$HOME/.bun/_bun" ] && source "/$HOME/.bun/_bun"
[ -s "$HOME/.deno/env" ] && . "/$HOME/.deno/env"