tmuxinator

Change background color of tmux pane depending on remote hostname

谁都会走 提交于 2020-01-25 10:42:08
问题 If I ssh into a remote server from tmux in a single pane, is it possible to change the background color of the pane based on the server name? Let's say all my prod servers start with prod_XYZ and a dev server starts with dev_XYZ. If I ssh into these two servers, can I color them differently based on the type of server I am on? That is, based on the server prefix? I know tmux panes now understand color. So if I can detect the ssh command is being used then I can figure the name of the server

Change background color of tmux pane depending on remote hostname

陌路散爱 提交于 2020-01-25 10:42:06
问题 If I ssh into a remote server from tmux in a single pane, is it possible to change the background color of the pane based on the server name? Let's say all my prod servers start with prod_XYZ and a dev server starts with dev_XYZ. If I ssh into these two servers, can I color them differently based on the type of server I am on? That is, based on the server prefix? I know tmux panes now understand color. So if I can detect the ssh command is being used then I can figure the name of the server

tmuxinator initialize pane with multiple commands

荒凉一梦 提交于 2019-12-12 08:27:16
问题 I am using Tmuxinator, and I was wondering is there anyway to initialize a Tmux pane using multiple commands? Example panes: - vim - workon project #activate virtualenv and .. ./manage.py runserver #run sever 回答1: This is supported from 0.6.6. name: sample root: ~/ windows: - stats: - ssh stats@example.com - tail -f /var/log/stats.log - logs: layout: main-vertical panes: - logs: - ssh logs@example.com - cd /var/logs - tail -f development.log Please refer to https://github.com/aziz/tmuxinator

tmux: how to open file under cursor

白昼怎懂夜的黑 提交于 2019-12-10 10:40:14
问题 i am a vim user and got used to the gf command, which opens the file under the cursor. Now i wanted to ask, if there is something like that for tmux. I can navigate through a tmux-pane and it happens often that there is a file-path under the cursor. Now i like to have the possibility to open that file under the cursor with vim. A: in the current window B: in another window which includes and opened vim Maybe there is a possibility to run a sh-script in that navigation-mode when invoking a

Switch between sessions in tmux?

时光怂恿深爱的人放手 提交于 2019-12-09 07:36:41
问题 I'm relatively new to tmux and use it just for local development. In some tmux tutorials, a person will list out their tmux sessions in an enumerated list. There is yellow highlight typically. Does anyone know what I'm talking about and how to do it? Secondly, would you say this is best practice? I'm over here with 8 iTerm2 tabs open :( Here's a screenshot of what I'm looking for: 回答1: C-b s found it! Alex's answer is awesome as well. Note C-b is my prefix, your prefix could be something else

tmux: how to open file under cursor

无人久伴 提交于 2019-12-06 09:30:24
i am a vim user and got used to the gf command, which opens the file under the cursor. Now i wanted to ask, if there is something like that for tmux. I can navigate through a tmux-pane and it happens often that there is a file-path under the cursor. Now i like to have the possibility to open that file under the cursor with vim. A: in the current window B: in another window which includes and opened vim Maybe there is a possibility to run a sh-script in that navigation-mode when invoking a special key-combination? that would make it possible to write my own scripts like i got used to in vim

Switch between sessions in tmux?

蹲街弑〆低调 提交于 2019-12-03 09:26:10
I'm relatively new to tmux and use it just for local development. In some tmux tutorials, a person will list out their tmux sessions in an enumerated list. There is yellow highlight typically. Does anyone know what I'm talking about and how to do it? Secondly, would you say this is best practice? I'm over here with 8 iTerm2 tabs open :( Here's a screenshot of what I'm looking for: C-b s found it! Alex's answer is awesome as well. Note C-b is my prefix, your prefix could be something else. You're looking for C-b ( and C-b ) . You can find this and many more wonderful tips on the tmux cheatsheet

Specify pane percentage in tmuxinator project

…衆ロ難τιáo~ 提交于 2019-11-29 18:36:21
How can I specify a pane percentage in tmuxinator ? Eg: project_name: ad_dev project_root: ~/Programming/WWW/Rails/projects/ApparelDreamDev rvm: ruby-1.9.2-p290@apparel_dev pre: SQL tabs: - editor: layout: main-vertical panes: - vim 75% - #empty, will just run plain bash - top eg: the vim pane would take 75% of the screen... is there a way to specify this ? or where in the documentation should I look ? Can't seem to find it anywhere. The layout should be specified in the layout: line. But you are not limited to the five preset layouts (such as main-vertical). From the man page : In addition,

Specify pane percentage in tmuxinator project

五迷三道 提交于 2019-11-28 13:12:30
问题 How can I specify a pane percentage in tmuxinator ? Eg: project_name: ad_dev project_root: ~/Programming/WWW/Rails/projects/ApparelDreamDev rvm: ruby-1.9.2-p290@apparel_dev pre: SQL tabs: - editor: layout: main-vertical panes: - vim 75% - #empty, will just run plain bash - top eg: the vim pane would take 75% of the screen... is there a way to specify this ? or where in the documentation should I look ? Can't seem to find it anywhere. 回答1: The layout should be specified in the layout: line.