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
[[ -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.
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 passed to the shell is a ‘-’.