net-misc/openssh: send & accept COLORTERM env var #658540
authorMike Frysinger <vapier@gentoo.org>
Wed, 20 Jun 2018 22:03:17 +0000 (18:03 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 26 Jun 2018 08:18:50 +0000 (04:18 -0400)
For terminal emulators that set this variable, pass it along.

Url: https://gist.github.com/XVilka/8346728
Bug: https://bugs.gentoo.org/658540

net-misc/openssh/openssh-7.7_p1-r102.ebuild
net-misc/openssh/openssh-7.7_p1-r6.ebuild

index 5bea8702b077b3ab2c8a4b88d6c29c7034276c60..c4747a2597eeccc7bcf218057f8b1d01872a4ea2 100644 (file)
@@ -345,6 +345,9 @@ tweak_ssh_configs() {
 
        # Allow client to pass locale environment variables. #367017
        AcceptEnv ${locale_vars[*]}
+
+       # Allow client to pass COLORTERM to match TERM. #658540
+       AcceptEnv COLORTERM
        EOF
 
        # Then the client config.
@@ -352,6 +355,9 @@ tweak_ssh_configs() {
 
        # Send locale environment variables. #367017
        SendEnv ${locale_vars[*]}
+
+       # Send COLORTERM to match TERM. #658540
+       SendEnv COLORTERM
        EOF
 
        if use pam ; then
index 3e0ed629bbce16bd75d7c481a569ee7e3917dac9..a8c8b20d4c27094e968f1a7ccf3f6d6d00bc1773 100644 (file)
@@ -345,6 +345,9 @@ tweak_ssh_configs() {
 
        # Allow client to pass locale environment variables. #367017
        AcceptEnv ${locale_vars[*]}
+
+       # Allow client to pass COLORTERM to match TERM. #658540
+       AcceptEnv COLORTERM
        EOF
 
        # Then the client config.
@@ -352,6 +355,9 @@ tweak_ssh_configs() {
 
        # Send locale environment variables. #367017
        SendEnv ${locale_vars[*]}
+
+       # Send COLORTERM to match TERM. #658540
+       SendEnv COLORTERM
        EOF
 
        if use pam ; then