lovd-g
Last Updated: February 25, 2016
·
7.814K
· shtirlic
F7775e6ffcb3fbd88e64b3d978386a71

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 ‘-’.
Say Thanks
Respond

1 Response
Add your response

11200
8f6c1acc9919204e1515ee1d014df925

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 ·