optimized _ssh_or_mosh_args() by deferring calls to external programs
This commit is contained in:
parent
03d9514071
commit
20fa97e310
1 changed files with 8 additions and 4 deletions
12
.tmux.conf
12
.tmux.conf
|
@ -546,10 +546,14 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# _ssh_or_mosh_args() {
|
# _ssh_or_mosh_args() {
|
||||||
# args=$(printf '%s' "$1" | awk '/ssh/ && !/vagrant ssh/ && !/autossh/ && !/-W/ { $1 = $2 = $3 = ""; print $0; exit }')
|
# case "$1" in
|
||||||
# if [ -z "$args" ]; then
|
# *ssh*)
|
||||||
# args=$(printf '%s' "$1" | grep 'mosh-client' | sed -E -e 's/.*mosh-client -# (.*)\|.*$/\1/' -e 's/-[^ ]*//g' -e 's/\d:\d//g')
|
# args=$(printf '%s' "$1" | awk '/ssh/ && !/vagrant ssh/ && !/autossh/ && !/-W/ { $1 = $2 = $3 = ""; print $0; exit }')
|
||||||
# fi
|
# ;;
|
||||||
|
# *mosh-client*)
|
||||||
|
# args=$(printf '%s' "$1" | sed -E -e 's/.*mosh-client -# (.*)\|.*$/\1/' -e 's/-[^ ]*//g' -e 's/\d:\d//g')
|
||||||
|
# ;;
|
||||||
|
# esac
|
||||||
#
|
#
|
||||||
# printf '%s' "$args"
|
# printf '%s' "$args"
|
||||||
# }
|
# }
|
||||||
|
|
Loading…
Reference in a new issue