From 663637013aa72d40fba428a08a655e691b5d1ab2 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 27 Mar 2020 21:13:43 +1300 Subject: [PATCH 1/1] allow passing subcommands to single-tmux-session --- .bin/tmux | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.bin/tmux b/.bin/tmux index 30d3017..6a4a360 100755 --- a/.bin/tmux +++ b/.bin/tmux @@ -34,8 +34,11 @@ if [ "${1:-}" = last ]; then echo >&2 W: No tmux session ID stored, generating a new one… fi -elif [ -n "${1:-}" ]; then - real_tmux "$@" +else + case "${1:-;}" in + (\;) :;; + (*) real_tmux "$@";; + esac fi # only without argument create a new session with a random name/id to which we -- 2.39.5