d0c063c48c4e28a1e7dab47cbf605270f2e9a685
[profile.git] / opt / bin / ktmux
1 #!/bin/bash
2
3 tmux=tmux
4 tmux_opts=
5 session_opts=
6 while getopts ":T:n:s:t:" opt; do
7   case $opt in
8     T) tmux="$OPTARG";;
9     n|s|t) session_opts="$session_opts -$opt $OPTARG";;
10   esac
11 done
12 shift $((OPTIND-1))
13
14 exec $tmux ${tmux_opts## } new-session ${session_opts## } -d ';' attach ';' run-shell ktmux_helper