Tuesday, October 27, 2009

SunOS, backspace and vi

Are you a Linux user forced to use SunOS for a part of your work? Simply navigating around shell and vi is a major PITA. How can it not be if backspace and delete don't work? After some looking around I came up with a pretty standard bash solution of .inputrc config. See the file below - it solves all the problems and makes SunOS behave just like Linux. It also lets you search your bash history with up/down arrow keys (type something and then hit up/down and it will find commands that start with these characters).