Networking, Programming and Graphics Tutorials
Home >> OS >> Unix >> SSH >>

Make Home, End keys work on FreeBSD with BASH [1/1]

Type: Code Networking, Programming and Graphics Tutorials
Make Home, End keys work on FreeBSD with BASH
Level: Beginner Networking, Programming and Graphics Tutorials 
Make Home, End keys work on FreeBSD with BASH
Date: 2007-Nov-05
Make Home, End keys work on FreeBSD with BASH
Visited: 1738 times
Make Home, End keys work on FreeBSD with BASH
Rating: Make Home, End keys work on FreeBSD with BASH
Make Home, End keys work on FreeBSD with BASH
Author: 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:                    
Networking, Programming and Graphics Tutorials - Make Home, End keys work on FreeBSD with BASH [1/1] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: home and delete keys do not work in bash  freebsd ssh make home and end work  home end keys work on command unix  home and delete keys do not work in shell  freebsd home end keys  home and delete keys in bash  End Home freebsd vi bash  home end bash Freebsd  freebsd bash home end  freebsd bash home end