]> 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:

simplify special last command
authormartin f. krafft <madduck@madduck.net>
Tue, 24 Mar 2020 02:04:51 +0000 (15:04 +1300)
committermartin f. krafft <madduck@madduck.net>
Tue, 24 Mar 2020 02:04:51 +0000 (15:04 +1300)
.bin/tmux

index 3fc4b4fd89181aabadc489b302738293e32acb8e..30d301717cd0797158a1166b44563828ff22427e 100755 (executable)
--- 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)"