New ruby-version and Gemfile auto selection tmux error

45 views
Skip to first unread message

Dylan Smith

unread,
May 3, 2013, 2:54:02 PM5/3/13
to rubyversi...@googlegroups.com
I'm having trouble using .ruby-version / .ruby-gemset and the Gemfile equivalent (e.g. #ruby=1.9.3). When I try one of these methods to auto-detect rubies and gemsets, I get tmux errors. I cd into my project and get this:

usage: attach-session [-dr] [-t target-session]
usage: attach-session [-dr] [-t target-session]

(One line for ruby, one line for gemset.)

Renaming my tmux binary and cd'ing into project yields this error:

__rvm_load_project_config:64: command not found: tmux
__rvm_load_project_config:66: command not found: tmux

I'm using rvm 1.19.6. Any help resolving this issue would be great because the old .rvmrc file is now not working so well for me (rvm rvmrc trust no longer works?)

Thanks.

mpapis

unread,
May 6, 2013, 11:32:10 PM5/6/13
to rubyversi...@googlegroups.com
what aliases do you use in tmux?

Dylan Smith

unread,
May 7, 2013, 11:41:48 PM5/7/13
to rubyversi...@googlegroups.com
Wow, you're good. Thank you. The offending alias was this, in .zshrc:

alias tr="tmux attach -t Rails"

I looked around in .rvm/scripts out of curiosity to see if tr was being called but didn't see it.

Thank you!

mpapis

unread,
May 8, 2013, 9:50:27 AM5/8/13
to rubyversi...@googlegroups.com
please open a ticket for rvm to escape all tr invocations => https://github.com/wayneeseguin/rvm/issues
Reply all
Reply to author
Forward
0 new messages