From 3f3f082bc7b78ebe6bf0b25979026a951bb633cb Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 31 May 2015 08:30:49 -0700 Subject: [PATCH] [split] Move ssh plugin to oh-my-fish/plugin-ssh https://github.com/oh-my-fish/plugin-ssh --- plugins/ssh/README.md | 20 -------------------- plugins/ssh/ssh.fish | 12 ------------ 2 files changed, 32 deletions(-) delete mode 100644 plugins/ssh/README.md delete mode 100644 plugins/ssh/ssh.fish diff --git a/plugins/ssh/README.md b/plugins/ssh/README.md deleted file mode 100644 index 1ed25f2..0000000 --- a/plugins/ssh/README.md +++ /dev/null @@ -1,20 +0,0 @@ -## ssh conservative $TERM value helper - -Due to inconsistency of 256 color terminal support across -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: - - set -g default-terminal "screen-256color" - -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 -regular 'screen' or 'xterm' $TERM value when setting up -a ssh connection. - diff --git a/plugins/ssh/ssh.fish b/plugins/ssh/ssh.fish deleted file mode 100644 index 00d1963..0000000 --- a/plugins/ssh/ssh.fish +++ /dev/null @@ -1,12 +0,0 @@ -function ssh --description 'OpenSSH SSH client (remote login program) with a conservative $TERM value' - switch $TERM - case screen-256color - set -lx TERM screen - command ssh $argv - case xterm-256color - set -lx TERM xterm - command ssh $argv - case '*' - command ssh $argv - end -end