From: Iain Patterson Date: Fri, 20 Jan 2012 11:23:28 +0000 (+0000) Subject: Allow specifying path to tmux socket. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=40bb8565e90e541eb6eeae62d12b2f8f82d56883;p=profile.git Allow specifying path to tmux socket. Use -S to pass the socket path flag to tmux. --- diff --git a/opt/bin/ktmux b/opt/bin/ktmux index 9545c36..9989842 100755 --- a/opt/bin/ktmux +++ b/opt/bin/ktmux @@ -5,6 +5,7 @@ # Options: -I Pass path to kinit through to ktmux_helper. # -L Pass path to klist through to ktmux_helper. # -R Pass path to krenew through to ktmux_helper. +# -S Socket path for tmux. # -T Path to tmux. # -n Window name for new tmux session. # -s Session name for new tmux session. @@ -15,11 +16,12 @@ tmux=tmux helper_opts= tmux_opts= session_opts= -while getopts ":I:L:R:T:n:s:t:" opt; do +while getopts ":I:L:R:S:T:n:s:t:" opt; do case $opt in I|L|R) helper_opts="$helper_opts -$opt $OPTARG";; T) tmux="$OPTARG"; helper_opts="$helper_opts -$opt $OPTARG";; n|s|t) session_opts="$session_opts -$opt $OPTARG";; + S) tmux_opts="$tmux_opts -$opt $OPTARG";; esac done shift $((OPTIND-1))