git://git.iain.cx/iain
/
profile.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix PAGER.
[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