From: Chris Koeritz Date: Mon, 6 Nov 2017 14:04:01 +0000 (-0500) Subject: reenabled ssh function X-Git-Tag: 2.140.90~62 X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=commitdiff_plain;h=4eb4f6be035445f7ffcbf4037ea6fe8e5d71117c reenabled ssh function forgot we need to override ssh to enable x forwarding. --- 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