How do I make Home and End work in PuTTY SSH with fish shell?

Posted by endolith on Ask Ubuntu See other posts from Ask Ubuntu or by endolith
Published on 2013-11-01T13:53:16Z Indexed on 2013/11/03 22:18 UTC
Read the original article Hit count: 304

Filed under:
|
|
|
|

Years ago, an Ubuntu update broke this and I've never found a solution.

  • I have fish as my default shell.
  • Ubuntu 12.10
  • Locally (Gnome Terminal), Home and End keys work fine in both fish and bash.
  • When I log in by SSH using PuTTY, then run bash, Home and End work fine inside of bash.
  • However, when I log in by SSH using PuTTY, in the default fish shell, pressing Home key produces [1~ (sometimes erasing the line, sometimes not). When I press End, it produces [4~.

How do I get Home and End to work correctly?

© Ask Ubuntu or respective owner

Related posts about bash

Related posts about keyboard