Add simple wrapper to resume tmux session with lowest number

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-02-17 01:08:50 +01:00
parent fe8e9e07ef
commit 408544d37d
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

5
bin/resume Executable file
View 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