]> git.madduck.net Git - etc/tmux.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

allow passing subcommands to single-tmux-session
authormartin f. krafft <madduck@madduck.net>
Fri, 27 Mar 2020 08:13:43 +0000 (21:13 +1300)
committermartin f. krafft <madduck@madduck.net>
Fri, 27 Mar 2020 08:13:43 +0000 (21:13 +1300)
.bin/tmux

index 30d301717cd0797158a1166b44563828ff22427e..6a4a360a4f8f3182680fcf51fe30b5be2d0b572e 100755 (executable)
--- 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