delete duplicate line and adjust help function
This commit is contained in:
parent
703fb41564
commit
0af3096556
3
ssh.sh
3
ssh.sh
@ -29,7 +29,7 @@ usage(){
|
|||||||
|
|
||||||
echo \
|
echo \
|
||||||
"
|
"
|
||||||
usage: /bin/sh $0 -cgsu [args]
|
usage: /bin/sh $0 -cr [args]
|
||||||
-c : start server and connect xterm or attach term to detached session
|
-c : start server and connect xterm or attach term to detached session
|
||||||
-c args: start server and run ssh with args or start ssh and attach xterm
|
-c args: start server and run ssh with args or start ssh and attach xterm
|
||||||
-r sets pane title of the active pane
|
-r sets pane title of the active pane
|
||||||
@ -114,7 +114,6 @@ _setpane(){
|
|||||||
local _title=${1} _style
|
local _title=${1} _style
|
||||||
_title=${_title%%.*}
|
_title=${_title%%.*}
|
||||||
|
|
||||||
#[[ -z ${_title} ]] && _title=$(hostname -s)
|
|
||||||
[[ -z ${_title} ]] && _title=$(hostname -s)
|
[[ -z ${_title} ]] && _title=$(hostname -s)
|
||||||
|
|
||||||
$_tmux select-pane -T "$(printf %-${_tabw}.${_tabw}s ${_title})"
|
$_tmux select-pane -T "$(printf %-${_tabw}.${_tabw}s ${_title})"
|
||||||
|
Loading…
Reference in New Issue
Block a user