I just tried rails inside a tmux session in iTerm2 and it returns as
-bash: /usr/bin/rails: /usr/bin/ruby: bad interpreter: No such file or directory
I can run rails outside of tmux . I am using Mac OSX. I've installed Ruby via RVM . Here's the output of ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.3.0]
and which ruby
/Users/user/.rvm/rubies/ruby-1.9.3-p392/bin/ruby
It's the same output for both inside tmux and normal bash shell.
Here's my ~/.tmux.conf
set -g default-terminal "screen-256color"
How am I able to run rails inside the tmux session?
-ioption totmux new -s new-tmuxin the bash shell ? sorry. I am new to these stuff. – Ye Lin Aung May 07 '13 at 15:28set-option -g default-command "/bin/bash -i"as a line in your~/.tmux.confto ensure that bash starts in interactive mode. – Aaron Miller May 07 '13 at 15:44bash: preexec_invoke_exec: command not foundlines and it seems annoying andbashbecomes likebash-3.2$. Here's the pic. Any ways to fix it ? – Ye Lin Aung May 08 '13 at 00:55preexec_invoke_exechook, which may be of help. – Aaron Miller May 08 '13 at 15:02