Last Updated: February 25, 2016
·
11.67K
· shtirlic

rvm + oh-my-zsh + zsh + iTerm2

Using rvm with zsh

tail of the .zshrc

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
source $ZSH/oh-my-zsh.sh

.zlogin

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

Here's the order of the standard four files, and the condition under which they run:

.zshenv: (always)
.zprofile: [[ -o login ]]
.zshrc: [[ -o interactive ]]
.zlogin: [[ -o login ]]

If you are using iTerm2 with zsh installed by homebrew
use command bellow to start you shell.

/usr/local/bin/zsh -l

LOGIN (-l, ksh: -l)
This is a login shell. If this option is not explicitly set, the shell becomes a login shell if the first character of the argv[0] passed to the shell is a ‘-’.

1 Response
Add your response

Running this command sets up your zshrc and bashrc for rvm:

rvm get head --auto-dotfiles

This should cause "zsh -l" to work with rvm.

over 1 year ago ·