dots

Personal dotfiles
git clone git://git.gormless.xyz/dots.git
Log | Files | Refs

stmux (255B)


      1 #!/bin/sh
      2 test -z "$1" || test -z "$2" &&
      3 { >&2 echo "usage: ${0##*/} window path command"; exit 1; }
      4 
      5 tmux select-window -t "$1" 2>/dev/null ||
      6 if test -n "$3"
      7 then tmux new-window -n "$1" -c "$HOME/$2" "$3"
      8 else tmux new-window -n "$1" -c "$HOME/$2"
      9 fi