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
699e221a
Commit
699e221a
authored
Dec 23, 2014
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #269 from wk/master
parents
818e68b9
1a18186c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
plugins/README.markdown
plugins/README.markdown
+1
-0
plugins/ssh/README.md
plugins/ssh/README.md
+20
-0
plugins/ssh/ssh.fish
plugins/ssh/ssh.fish
+12
-0
No files found.
plugins/README.markdown
View file @
699e221a
...
...
@@ -31,6 +31,7 @@
*
__rbenv__ –
[
rbenv
](
https://github.com/sstephenson/rbenv
)
Ruby environment/version manager.
*
__replace__ – A port of
[
replace
](
https://github.com/thoughtbot/dotfiles/blob/master/bin/replace
)
.
*
__rvm__ –
[
RVM
](
http://rvm.io
)
Ruby version manager.
*
__ssh__ – ssh conservative $TERM value helper.
*
__sublime__ – Creates
`subl`
command line shortcut to launch
[
Sublime Text editor
](
http://sublimetext.com/
)
.
*
__tmux__ – Plugin to start tmux with support for 256 colours.
*
__vi-mode__ – Basic vi key bindings emulation for fish.
...
...
plugins/ssh/README.md
0 → 100644
View file @
699e221a
## 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.
plugins/ssh/ssh.fish
0 → 100644
View file @
699e221a
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
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