Eliminate superficial whitespaces in ssh plugin

This commit is contained in:
Wild Kat 2014-11-29 23:23:54 +01:00 committed by Bruno Pinto
parent c761f9442c
commit bafb64147c
2 changed files with 7 additions and 7 deletions

View File

@ -1,20 +1,20 @@
## ssh conservative $TERM value helper
## ssh conservative $TERM value helper
Due to inconsistency of 256 color terminal support across
terminal applications, it may be desirable to force the
terminal applications, it may be desirable to force the
$TERM value to it's -256color variant.
For example, this is often accomplished in tmux by means
of adding the following to a tmux.conf file:
of adding the following to a tmux.conf file:
set -g default-terminal "screen-256color"
Unfortunately, remote hosts accessed via ssh may not have
Unfortunately, remote hosts accessed via ssh may not have
the requisite terminfo files, and may not even allow the
user to supply them, as is often the case with network
equipment and other appliances accessible via ssh.
This helper strips the -256color suffix and exports a
This helper strips the -256color suffix and exports a
regular 'screen' or 'xterm' $TERM value when setting up
a ssh connection.

View File

@ -1,12 +1,12 @@
function ssh --description 'OpenSSH SSH client (remote login program) with a conservative $TERM value'
switch $TERM
case screen-256color
case screen-256color
set -lx TERM screen
command ssh $argv
case xterm-256color
set -lx TERM xterm
command ssh $argv
case '*'
case '*'
command ssh $argv
end
end