Skip to content

Fish function that overloads the ssh command to set a conservative $TERM value

License

Notifications You must be signed in to change notification settings

wk/plugin-ssh-term-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

ssh-term-helper

Fish function that overloads the ssh command to set a conservative $TERM value

Due to inconsistency of 256 color terminal support across terminal applications, it may be desirable to force the $TERM value to its -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.

Install

$ omf install ssh-term-helper
$ fisher install wk/plugin-ssh-term-helper

Usage

$ ssh [arguments]

ssh-term-helper overloads the 'ssh' command and changes the value of $TERM to a conservative setting present in most termcap files. Any arguments are passed directly to the ssh command.

License

MIT © wk et al

About

Fish function that overloads the ssh command to set a conservative $TERM value

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages