forked from kvesteri/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
62 lines (49 loc) · 1.79 KB
/
.bash_profile
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
for file in ~/.{bash_prompt,exports,aliases}; do
[ -r "$file" ] && source "$file"
done
unset file
# Initialize RVM
# source ~/.rvm/scripts/rvm
# Initialize autoenv
source /usr/local/bin/activate.sh
# Initialize virtualenvwrapper
#source /usr/local/bin/virtualenvwrapper.sh
# Append history entries
shopt -s histappend
# Enable bash autocompletion
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# The use_env call below is a reusable command to activate/create a new Python
# virtualenv, requiring only a single declarative line of code in your .env files.
# It only performs an action if the requested virtualenv is not the current one.
use_env() {
typeset venv
venv="$1"
if [[ `basename "${VIRTUAL_ENV:t}"` != "$venv" ]]; then
if workon | grep $venv > /dev/null; then
workon "$venv"
else
echo -n "Create virtualenv $venv now? (Yn) "
read answer
if [[ "$answer" == "Y" ]]; then
mkvirtualenv "$venv"
fi
fi
fi
}
[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh # This loads NVM
# Initialize direnv
eval "$(direnv hook bash)"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/eero/google-cloud-sdk/path.bash.inc' ]; then source '/Users/eero/google-cloud-sdk/path.bash.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/eero/google-cloud-sdk/completion.bash.inc' ]; then source '/Users/eero/google-cloud-sdk/completion.bash.inc'; fi
# The next line initializes qbi-cli.
if [ -f "/Users/eero/.qbirc" ]; then source "/Users/eero/.qbirc"; fi
# The next line initializes ea-cli.
if [ -f "/Users/eero/.earc" ]; then source "/Users/eero/.earc"; fi
# Pyenv
export PATH="/Users/eero/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"