From: Oleg Broytman Date: Thu, 30 Apr 2020 13:53:46 +0000 (+0300) Subject: Refactor(.fvwmrc): Refactor `ssh -4` in a separate macro X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=6ee9039d3fc164787b579a4f7b86ece6a736bbb8;p=dotfiles.git Refactor(.fvwmrc): Refactor `ssh -4` in a separate macro --- diff --git a/.fvwm/main.m4 b/.fvwm/main.m4 index 80735bd..fe687bd 100644 --- a/.fvwm/main.m4 +++ b/.fvwm/main.m4 @@ -92,11 +92,11 @@ define(`TERM_KOI8_BOTRT', `TERM_KOI8 -geometry TERM_GEOM_BOTRT') define(`TERM_UTF8_BOTRT', `TERM_UTF8 -geometry TERM_GEOM_BOTRT') -define(`REMOTE_HOST_TERM', -`$1 -e ssh -4 $2') +define(`SSH', `ssh -4') -define(`REMOTE_HOST_TERM_TITLE', -`$1 -title $3 -n $3 -e ssh -4 $2') +define(`REMOTE_HOST_TERM', `$1 -e SSH $2') + +define(`REMOTE_HOST_TERM_TITLE', `$1 -title $3 -n $3 -e SSH $2') define(`REMOTE_HOST_KOI8', REMOTE_HOST_TERM_TITLE(TERM_KOI8, $1, $2)) @@ -135,7 +135,7 @@ define(`REMOTE_HOST_UTF8_BOTRT_MENU', "$2 (utf8,btrt)" REMOTE_HOST_UTF8_BOTRT($1, $2)) define(`REMOTE_HOST_KOI8_BIG', -TERM_KOI8 -geometry TERM_GEOM_BIG -title "$2" -n "$2" -e ssh -4 "$1") +TERM_KOI8 -geometry TERM_GEOM_BIG -title "$2" -n "$2" -e SSH "$1") define(`REMOTE_HOST_KOI8_BIG_MENU', "$2 (koi8)" REMOTE_HOST_KOI8_BIG($1, $2))