Browse Source

bin: introduce tmux-reattach helper

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 4 years ago
parent
commit
58014ecd9c
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      files/bin/tmux-reattach

+ 9
- 0
files/bin/tmux-reattach

@ -0,0 +1,9 @@
#!/bin/sh
if ! which tmux > /dev/null; then
exec screen -dRU
elif tmux list-sessions 2> /dev/null >&2; then
exec tmux attach
else
exec tmux new
fi

Loading…
Cancel
Save