-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzprofile
More file actions
21 lines (19 loc) · 856 Bytes
/
zprofile
File metadata and controls
21 lines (19 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Set up chruby
if [ -f "/usr/share/chruby/chruby.sh" ]; then
# Normal installations
source /usr/share/chruby/chruby.sh
source /usr/share/chruby/auto.sh
elif [ -f "/usr/local/opt/chruby/share/chruby/chruby.sh" ]; then
# OS X + HomeBrew installations
source /usr/local/opt/chruby/share/chruby/chruby.sh
source /usr/local/opt/chruby/share/chruby/auto.sh
# See chruby#160; chruby uses preexec, but prompt is printed between precmd
# and preexec. So, just run chruby_auto twice and my prompt will match correctly.
precmd_functions+=("chruby_auto")
[ -f ~/.ruby-version ] && chruby $(cat ~/.ruby-version)
[ -f ./.ruby-version ] && chruby $(cat ./.ruby-version)
fi
# For python virtualenvs
# export WORKON_HOME="$HOME/Code/virtualenvs"
# export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
# source /usr/local/bin/virtualenvwrapper.sh