From 4eb4f6be035445f7ffcbf4037ea6fe8e5d71117c Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 6 Nov 2017 09:04:01 -0500 Subject: [PATCH] reenabled ssh function forgot we need to override ssh to enable x forwarding. --- scripts/core/functions.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 97516a69..7240866c 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -130,6 +130,19 @@ if [ -z "$skip_all" ]; then fi } + # wraps secure shell with some parameters we like, most importantly to enable X forwarding. + function ssh() + { + local args=($*) + save_terminal_title + # we remember the old terminal title, then force the TERM variable to a more generic + # version for the other side (just 'linux'); we don't want the remote side still + # thinking it's running xterm. + export TERM=linux + /usr/bin/ssh -X -C "${args[@]}" + restore_terminal_title + } + # locates a process given a search pattern to match in the process list. # supports a single command line flag style parameter of "-u USERNAME"; # if the -u flag is found, a username is expected afterwards, and only the -- 2.34.1