Create new tmux session from inside a tmux session

前端 未结 6 768
挽巷
挽巷 2021-01-29 20:02

I\'m writing a shell script that creates / attaches or switches to a given session, depending on whether one is inside tmux and the session exists.

I\'ve got everything

6条回答
  •  情深已故
    2021-01-29 20:09

    The quickest way (assuming you use ctrl-b as your command prefix) is:

    ctrl-b :new
    

    To create a new session, then

    ctrl-b s
    

    to interactively select and attach to the session.

提交回复
热议问题