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.




回答2:


You're looking for C-b ( and C-b ). You can find this and many more wonderful tips on the tmux cheatsheet.




回答3:


Is PREFIX s but the real command is choose-tree. Then you can use it to bind to other key for example to 'S'

bind S choose-tree

http://man.openbsd.org/OpenBSD-current/man1/tmux.1#choose-tree



来源:https://stackoverflow.com/questions/32790061/switch-between-sessions-in-tmux

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!