3

I want to detach a tmux session. Now I know the shortcut (^b d) but is there a way we can do this via shell command. I am writing an automation script where i need this.

1
  • 2
    Skim through the tmux manual page; the "CLIENTS AND SESSIONS" section in particular.
    – user1686
    Nov 7 '16 at 11:19
10

Only this:

tmux detach

Use this link for references: https://linux.die.net/man/1/tmux

-2

You can use git z tmux in ~/.zshrc. And use td.

1
  • 1
    Its not quite clear what these commands do - or if the OP's running zsh
    – Journeyman Geek
    Mar 17 '17 at 4:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.