replaced awk by perl in _ssh_or_mosh_args() to benefit from word boundary anchors, closes #363
This commit is contained in:
parent
8976729f4f
commit
3c09b78aa6
1 changed files with 1 additions and 1 deletions
|
@ -545,7 +545,7 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
|
|||
# _ssh_or_mosh_args() {
|
||||
# case "$1" in
|
||||
# *ssh*)
|
||||
# args=$(printf '%s' "$1" | awk '/ssh/ && !/vagrant ssh/ && !/autossh/ && !/-W/ { $1 = ""; print $0; exit }')
|
||||
# args=$(printf '%s' "$1" | perl -n -e 'print if s/(.*?)\bssh\b\s+(.*)/\2/')
|
||||
# ;;
|
||||
# *mosh-client*)
|
||||
# args=$(printf '%s' "$1" | sed -E -e 's/.*mosh-client -# (.*)\|.*$/\1/' -e 's/-[^ ]*//g' -e 's/\d:\d//g')
|
||||
|
|
Loading…
Reference in a new issue