143 reputation
4
bio website dholm.com
location Sweden
age 33
visits member for 1 year, 4 months
seen Apr 4 at 15:48

I'm working as a software designer for a large developer of telecommunications products. My interests lie mostly in programming and hardware engineering related to embedded systems and low-level programming.


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