1

Anyone know how to do this? You hit magic key+s to get the list of sessions, but if you choose to attach to one there it uses attach rather than attach -d.

I really dislike when my terminal is smaller because of the original terminal the session is in, and I do not mind re-attaching on the original system once I get to it.

1 Answer 1

3

Prefix s is (by default) bound to the command choose-tree which presents the list of sessions and then runs switch-client -t <choosen-session>. If you want it to run attach -dt <choose-session> instead, then you can rebind it like this:

bind-key s choose-tree -b "attach-session -dt '%%'"
1
  • This has stopped working I believe since 2.0; definitely not working in 2.1 unfortunately. Not sure yet how to fix.
    – Tatsh
    Commented Dec 21, 2015 at 6:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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