Skip to content

Commit db79241

Browse files
committed
Turn off echo before asking iTerm2 to send the conductor code
1 parent a837722 commit db79241

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

ssh-helpers/conductor.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,6 @@ detect_python() {
119119
[ -n "$python" ] && return 0
120120
return 1
121121
fi
122-
python_detected="1"
123-
python=$(command -v python3)
124-
[ -z "$python" ] && python=$(command -v python2)
125-
[ -z "$python" ] && python=$(command -v python)
126-
if [ -z "$python" -o ! -x "$python" ]; then python=""; return 1; fi
127-
log found python at $python
128122
return 0
129123
}
130124

utilities/it2ssh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ send_conductor='printf "\033]1337;SendConductor'"$st"'"'
148148

149149
# Run a command on the remote host that instructs iTerm2 to send a script, then reads the script and executes it.
150150
# I tried many ways to concatenate s and l and this is the only one that works on both Ubuntu 18 and Ubuntu 20.
151-
sanitized="$send_conductor"';s="";IFS=""; stty -echo; while read -r l;do [ "$l" = EOF ]&&break; s=$(printf "%s\n%s" "$s" "$l"); done; unset IFS; eval "$s"'
151+
sanitized="stty -echo; $send_conductor"';s="";IFS=""; while read -r l;do [ "$l" = EOF ]&&break; s=$(printf "%s\n%s" "$s" "$l"); done; unset IFS; eval "$s"'
152152

153153
# If ssh gets a signal, let it2ssh keep running.
154154
set +e

0 commit comments

Comments
 (0)