-
Notifications
You must be signed in to change notification settings - Fork 0
/
zsh-heavy-exports
60 lines (52 loc) · 1.8 KB
/
zsh-heavy-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
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh
export PATH="$PATH:./node_modules/.bin"
export PATH="/home/jared/.cargo/bin:$PATH"
export PATH=$PATH:/usr/local/go/bin
# opam configuration
[[ ! -r /home/jared/.opam/opam-init/init.zsh ]] || source /home/jared/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
# Init NVM
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
# Ocaml
[[ ! -r /home/jared/.opam/opam-init/init.zsh ]] || source /home/jared/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
# check for miniconda vs. anaconda3
if [ -d "$HOME/miniconda3" ]; then
__conda_setup="$('/home/jared/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/jared/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/jared/miniconda3/etc/profile.d/conda.sh"
else
export path="/home/jared/miniconda3/bin:$path"
fi
fi
unset __conda_setup
# Check for .miniconda
elif [ -d "$HOME/.miniconda3" ]; then
__conda_setup="$('/home/jared/.miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/jared/.miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/jared/.miniconda3/etc/profile.d/conda.sh"
else
export path="/home/jared/.miniconda3/bin:$path"
fi
fi
unset __conda_setup
# Check for anaconda3
elif [ -d "$HOME/anaconda3" ]; then
__conda_setup="$('/home/jared/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/jared/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/jared/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/home/jared/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
fi