Join GitHub today
"Warning! PATH is not properly set up" when using RVM with tmux #2825
I'm learning how to use
My setup has:
Is there something else I could try?
combining responses from http://superuser.com/questions/253786/how-can-i-make-tmux-use-my-default-shell I would say you have to add:
set-option -g default-shell "$SHELL -l"
Using your suggestion, my
It got me searching in the right direction. I did not realise I could supply configuration options to
As a note: I'm guessing that
Now, RVM does not complain about paths.
Unfortunately, RVM gemsets are not picked up automatically when
After more searching, I discovered http://unix.stackexchange.com/a/38475 and added the line
This gives me the interactive shell you recommended
At this point, RVM is working as expected, although the warning is back:
Here is the output of those shell variables from a new
didnt work for me, what I do:
temporal solution: in zshrc
I'm seeing the same behavior as @BjornMelgaard .
I won't open a new ticket, though. This looks to me like a tmux issue, not an rvm issue; work around it in your dotfiles until tmux stops necromancing GEM_HOME and GEM_PATH back from the dead when it spawns a login shell.
I use bash, my fix goes in my .bash_profile after loading rvm (Your own setup might load rvm in another file, like .profile or .bashrc... put the fix in there after the load):
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* # the fix if [ -n $TMUX ] && [ 'function' = `type -t rvm` ]; then # NOTE: rvm does some hanky-panky with STDERR so it can always shout # its warnings at you, even when you're running the command to fix the # thing it's warning you about. # We redirect file descriptor 6 here to circumvent this nonsense. rvm use default >/dev/null 2>&1 6>&1 cd . fi