Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
4
Newest
 Scholar
Impact
~638 people reached

  • 0 posts edited
  • 0 helpful flags
  • 21 votes cast
Mar
23
comment When exiting the last terminal in a tmux session can it switch to another?
This does exactly what I want, thank you!
Mar
23
accepted When exiting the last terminal in a tmux session can it switch to another?
Mar
26
comment When exiting the last terminal in a tmux session can it switch to another?
Let's say I have session X and Y, where Y only has one terminal open. I run 'exit' in the last terminal in Y which will cause the session to terminate. In this case I would like tmux to switch to session X instead of terminating. But I don't want a tmux session to be attached/created whenever I launch a new terminal.
Mar
26
comment When exiting the last terminal in a tmux session can it switch to another?
It's almost what I want but is it possible to change it so that it only runs if I exit from inside tmux? This script will attach to existing tmux sessions whenever I open a new terminal. I try to have a tmux session for local stuff and then I open a new terminal when ssh:ing to another machine where I will have a separate tmux session to avoid having them nested.
Mar
26
asked When exiting the last terminal in a tmux session can it switch to another?
Dec
21
awarded  Scholar
Dec
21
accepted Getting or cloning the users current terminal?
Dec
20
comment Getting or cloning the users current terminal?
xdg-utils don't seem to be deployed on our systems. :/
Dec
20
awarded  Student
Dec
20
comment Getting or cloning the users current terminal?
@gertvdijk that's what I would do. Problem is, most users don't know how to use screen/tmux and I don't want to modify the default behaviour. The /etc/alternatives/x-terminal-emulator link does not exist I'm afraid. Still, I want the script to use urxvt in my case which it definitely wouldn't point to. In the general case this would be much nicer than a hardcoded xterm though.
Dec
20
asked Getting or cloning the users current terminal?
Dec
16
awarded  Autobiographer
Dec
16
awarded  Supporter