]>
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:
for i in "$@"; do
case "${state:-}:$i" in
(:-c) state=cwd;;
for i in "$@"; do
case "${state:-}:$i" in
(:-c) state=cwd;;
- (:--) shift; set -- "$@"; break
+ (:--) shift; set -- "$@"; break;;
+
+ (:\;) cmds="$cmds \;";;
+ (:*) cmds="${cmds:+$cmds }$i";;
esac
shift 2>/dev/null || break
done
esac
shift 2>/dev/null || break
done
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
warn "Ignoring commands specified with -w"
set --
fi
warn "Ignoring commands specified with -w"
set --
fi
err 1 "Missing option -n, required with -w"
fi
err 1 "Missing option -n, required with -w"
fi
- args="new -t $name \; select-window -t $window"
+ args="new -t $name \;${cmds:+ $cmds \;} select-window -t $window"
case "$i" in
(*:) wname="${i%:}";;
(+|.|\;)
case "$i" in
(*:) wname="${i%:}";;
(+|.|\;)
- args="${args}${subcmd}${cwd:+ -c $cwd}${wname:+ -n $wname}${cmd:-} \\; "
+ args="${args}${subcmd}${cwd:+ -c $cwd}${wname:+ -n $wname}${cmd:-} \; "
+ args="$args${cmds:+$cmds \; }"
;;
(*) cmd="${cmd:-} $i";;
esac
;;
(*) cmd="${cmd:-} $i";;
esac