Add simple wrapper to resume tmux session with lowest number
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
fe8e9e07ef
commit
408544d37d
1 changed files with 5 additions and 0 deletions
5
bin/resume
Executable file
5
bin/resume
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
[ -n "${TMUX}" ] && exit 1
|
||||
|
||||
tmux attach-session -t $(tmux list-sessions | sort -n | head -n1 | cut -d: -f1) || tmux
|
Loading…
Reference in a new issue