Networking, Programming and Graphics - Tutorials
ONLINEHOWTO.net Tutorials Category

Make Home, End keys work on FreeBSD with BASH

Type: Code Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Level: Beginner Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2007-Nov-05
Networking, Programming and Graphics - Tutorials
Visited: 3318 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Published: Stephen Think

This tutorial will explain you how to make Home and End keys work in ssh when you use bash as your shell.

First what you have to do is run this command in ssh when you are in your home folder.

echo "export INPUTRC=/etc/inputrc" >> .profile

The create the /etc/inputrc file with the following content:
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[3~": delete-char #delete
"\eOd": backward-word #ctl-leftarrow
"\eOc": forward-word #ctl-rightarrow
Of course the path /etc/inputrc is optional. You can name the file differently. You can place it at you HOME folder also, it is up to you.

You need to log out and log back in order the changes to take effect.
Rate this tutorial:                    
Post Comment

Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: