summaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-11-02 15:10:40 +0100
committerGravatar Tom Willemse2014-11-02 15:10:40 +0100
commitaa7889378b93d383de4394f6d203865db78d890d (patch)
tree64863485b06d21cfe25d494be352462fdaeb514b /zsh
parent7089660933d9cd2b1454b341c646532b2284277b (diff)
downloaddotfiles-aa7889378b93d383de4394f6d203865db78d890d.tar.gz
dotfiles-aa7889378b93d383de4394f6d203865db78d890d.zip
Add RVM variables
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zprofile4
1 files changed, 4 insertions, 0 deletions
diff --git a/zsh/.zprofile b/zsh/.zprofile
index c2b1d33..79b19fe 100644
--- a/zsh/.zprofile
+++ b/zsh/.zprofile
@@ -3,6 +3,7 @@ export EDITOR="emacsclient -a emacs"
PATH="$HOME/usr/bin:$PATH"
PATH="/usr/local/heroku/bin:$PATH"
+PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export PATH
INFOPATH="$HOME/documents/info:$INFOPATH"
@@ -18,3 +19,6 @@ export DBUS_SESSION_BUS_ADDRESS
if [ -z "$SSH_AGENT_PID" ]; then
eval `ssh-agent`
fi
+
+# Load RVM into a shell session as a func
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"