Switch between sessions in tmux?

后端 未结 5 1398
天涯浪人
天涯浪人 2020-12-25 09:49

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

5条回答
  •  情话喂你
    2020-12-25 10:24

    A faster switch by name is for example possible with a shell alias. For the zsh it can look as follows:

    function tn() (
        if [ -n "$1" ]
          then
             tmux switch -t $1
          else
             echo "no session name"
         fi
      )
    

    With tn go you switch to the tmux session with name go.

提交回复
热议问题