From 408544d37da0a78d5714f92692e7b63796aeef0e Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 17 Feb 2017 01:08:50 +0100 Subject: [PATCH] Add simple wrapper to resume tmux session with lowest number Signed-off-by: Knut Ahlers --- bin/resume | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/resume diff --git a/bin/resume b/bin/resume new file mode 100755 index 0000000..e1a82da --- /dev/null +++ b/bin/resume @@ -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