On Thu, Aug 11, 2016 at 10:41:03PM +0300, Amer wrote: > For me it started playing nicely only with wrapper to tmux, though. > Because I didn't liked how sessions stayed alive after killing > terminals directly through window manager. > > $ st -e r.tmux > > $ cat r.tmux > #!/bin/bash -e > trap "tmux kill-session -t st-$$" INT TERM EXIT > tmux new-session -s st-$$ "$@"
Cool hack, maybe we could add an "Idioms" section to the wiki to suggest this kind of things. -- mpu