Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
bafb6414
Commit
bafb6414
authored
Nov 29, 2014
by
Wild Kat
Committed by
Bruno Pinto
Dec 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate superficial whitespaces in ssh plugin
parent
c761f944
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
plugins/ssh/README.md
plugins/ssh/README.md
+5
-5
plugins/ssh/ssh.fish
plugins/ssh/ssh.fish
+2
-2
No files found.
plugins/ssh/README.md
View file @
bafb6414
## ssh conservative $TERM value helper
## ssh conservative $TERM value helper
Due to inconsistency of 256 color terminal support across
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.
$TERM value to it's -256color variant.
For example, this is often accomplished in tmux by means
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"
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
the requisite terminfo files, and may not even allow the
user to supply them, as is often the case with network
user to supply them, as is often the case with network
equipment and other appliances accessible via ssh.
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
regular 'screen' or 'xterm' $TERM value when setting up
a ssh connection.
a ssh connection.
plugins/ssh/ssh.fish
View file @
bafb6414
function ssh --description 'OpenSSH SSH client (remote login program) with a conservative $TERM value'
function ssh --description 'OpenSSH SSH client (remote login program) with a conservative $TERM value'
switch $TERM
switch $TERM
case screen-256color
case screen-256color
set -lx TERM screen
set -lx TERM screen
command ssh $argv
command ssh $argv
case xterm-256color
case xterm-256color
set -lx TERM xterm
set -lx TERM xterm
command ssh $argv
command ssh $argv
case '*'
case '*'
command ssh $argv
command ssh $argv
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment