From 9979e20072b4abe8adaa4e269f011d5cce5f6297 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 24 Mar 2020 15:04:51 +1300 Subject: [PATCH] simplify special last command --- .bin/tmux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/tmux b/.bin/tmux index 3fc4b4f..30d3017 100755 --- a/.bin/tmux +++ b/.bin/tmux @@ -20,7 +20,7 @@ tmux_session_exists() { _tmux_eval_only=1 real_tmux has-session -t "$1" } -if [ "${1:-}" = --connect-to-last ]; then +if [ "${1:-}" = last ]; then shift if [ -f "$LASTSESSIONIDFILE" ]; then UUID="$(cat $LASTSESSIONIDFILE)" -- 2.39.5