-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zsh_exports
48 lines (40 loc) · 2.47 KB
/
.zsh_exports
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
# Set PATH for Python 3.8
export PATH="$HOME/Library/Python/3.8/bin:${PATH}" # pip install --user
export PATH="/usr/local/opt/python@3.8/bin:${PATH}" # python3.8 from here
# Set PATH for Python 3.9
export PATH="$HOME/Library/Python/3.9/bin:${PATH}" # pip install --user
export PATH="/usr/local/opt/python@3.9/bin:${PATH}" # python3 from here
export PATH="/usr/local/opt/python@3.9/libexec/bin:${PATH}" # python from here
# Preferred editor for local and remote sessions
export EDITOR='vim'
# Lazy load nvm npm node
nvm() {
unset -f nvm npm node
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
nvm "$@"
}
node() {
unset -f nvm npm node
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
node "$@"
}
npm() {
unset -f nvm npm node
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
npm "$@"
}
# tabtab source for serverless, sls, slss packages
# uninstall by removing these lines or running `tabtab uninstall [ serverless, sls, slss ]`
[[ -f /Users/bstarcheus/.nvm/versions/node/v12.11.1/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.zsh ]] && . /Users/bstarcheus/.nvm/versions/node/v12.11.1/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.zsh
[[ -f /Users/bstarcheus/.nvm/versions/node/v12.11.1/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.zsh ]] && . /Users/bstarcheus/.nvm/versions/node/v12.11.1/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.zsh
[[ -f /Users/bstarcheus/.nvm/versions/node/v12.11.1/lib/node_modules/serverless/node_modules/tabtab/.completions/slss.zsh ]] && . /Users/bstarcheus/.nvm/versions/node/v12.11.1/lib/node_modules/serverless/node_modules/tabtab/.completions/slss.zsh
# Update PATH for the Google Cloud SDK.
if [ -f '/Users/bstarcheus/.google-cloud-sdk/path.zsh.inc' ]; then . '/Users/bstarcheus/.google-cloud-sdk/path.zsh.inc'; fi
# Enable shell command completion for gcloud.
if [ -f '/Users/bstarcheus/.google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/bstarcheus/.google-cloud-sdk/completion.zsh.inc'; fi