]> git.madduck.net Git - etc/tmux.git/blobdiff - .bin/mtmux

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:

disable mouse by default
[etc/tmux.git] / .bin / mtmux
index 0db35e1f3deaa4fb9676a9fba28b03516d2771c4..a40bd1218d82c9c7e2a5709333599e5c8643229f 100755 (executable)
@@ -65,7 +65,7 @@ if [ -n "${window:-}" ]; then
     warn "Both -w and -c don't make sense, ignoring -c"
     cwd=
   fi
     warn "Both -w and -c don't make sense, ignoring -c"
     cwd=
   fi
-  if [ -n "$@" ]; then
+  if [ -n "$*" ]; then
     warn "Ignoring commands specified with -w"
     set --
   fi
     warn "Ignoring commands specified with -w"
     set --
   fi
@@ -77,7 +77,7 @@ if [ -n "${window:-}" ]; then
 
 else
 
 
 else
 
-  subcmd="new${name:+ -s $name}"
+  subcmd="set -g monitor-bell off \; new${name:+ -s $name}"
   for i in "$@" +; do
     case "$i" in
       (*:) wname="${i%:}";;
   for i in "$@" +; do
     case "$i" in
       (*:) wname="${i%:}";;