[英]I have to `bundle install` to every pane of tmux
I'm using tmux for rails project. 我正在将tmux用于Rails项目。
The purpose is to split pane. 目的是拆分窗格。 Such as, one pane for text editor, one pane for execute
例如,一个窗格用于文本编辑器,一个窗格用于执行
rails s -b 0.0.0.0
etc. 等等
It was very convenient until now. 到现在为止还是很方便的。
Every new pane has forgotten that i executed: 每个新窗格都忘记了我执行的内容:
bundle install
So that they required me to run bundle install
again, when i create a new pane. 因此,当我创建一个新窗格时,他们需要我再次运行
bundle install
。
This is a huge pain. 这是一个巨大的痛苦。 Somehow i want them to know that i executed it , but i don't know how to do it.
我以某种方式希望他们知道我执行了它,但是我不知道该怎么做。
Thank you for your help. 谢谢您的帮助。
Enviroment 环保环境
Note: I installed ruby 2.3.1 on a pane, but other new panes show ruby 2.1.1 .... 注意:我在窗格上安装了ruby 2.3.1,但是其他新窗格显示ruby 2.1.1...。
I don't know why but after reinstalled ruby and set latest ruby version as default, problem solved. 我不知道为什么,但是在重新安装ruby并将最新的ruby版本设置为默认版本后,问题解决了。
1) Installing ruby 1)安装红宝石
I followed this site. 我关注了这个网站。
http://usabilityetc.com/articles/ruby-on-mac-os-x-with-rvm/ http://usabilityetc.com/articles/ruby-on-mac-os-x-with-rvm/
2) Setting latest ruby version 2)设置最新的红宝石版本
$ rvm --default use 2.3.1
Attention the order. 注意顺序。 I think you should execute
bundle install
first, then split the pane. 我认为您应该先执行
bundle install
,然后拆分窗格。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.