Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Make the forward delete key work in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make the forward delete key work in Terminal
Authored by: ssteiner on Mar 17, '06 02:27:21AM

The config below can be added to either ~/.inputrc or /etc/inputrc to make os x terminal life just a little easier. You might also need to add the line

export INPUTRC=~/.inputrc

or

export INPUTRC=/etc/inputrc

to ~/.bash_profile

# this makes the "delete" key work rather than
# just entering a ~
"\e[3~": delete-char

# these allow you to use ctrl+left/right arrow keys
# to jump the cursor over words
"\e[5C": forward-word
"\e[5D": backward-word

# these allow you to start typing a command and
# use the up/down arrow to auto complete from
# commands in your history
"\e[B": history-search-forward
"\e[A": history-search-backward

# this lets you hit tab to auto-complete a file or
# directory name ignoring case
set completion-ignore-case On

# I'm not sure what keys these are!
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[2~": quoted-insert

From:

http://koorb.co.uk/scrapbook/



[ Reply to This | # ]