madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://<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 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://"]
  insteadOf = madduck:

differentiate between -s/-t for new sessions on older clients
authormartin f. krafft <>
Tue, 31 Mar 2020 21:06:26 +0000 (23:06 +0200)
committermartin f. krafft <>
Tue, 31 Mar 2020 21:06:26 +0000 (23:06 +0200)

index 38243a3780940d49f7b5bb794234656922c95dba..93837e017c0fc8661b9be6eff30c736ce29c1b78 100755 (executable)
--- a/.bin/tmux
+++ b/.bin/tmux
@@ -13,7 +13,9 @@ real_tmux() {
 single_tmux_session() {
   local id; id="$1"; shift
-  real_tmux new -t "$id" "$@"
+  local flag; flag=t
+  real_tmux list-sessions | grep -q "^${id}:" || flag=s
+  real_tmux new -$flag "$id" "$@"
 tmux_session_exists() {