results-all.master revision 4607
3733N/A# My ~/.inputrc file is in -*- text -*- for easy editing with Emacs.
3733N/A#
3733N/A# Notice the various bindings which are conditionalized depending
3733N/A# on which program is running, or what terminal is active.
3733N/A#
3733N/A
4607N/A# Copyright (C) 1989-2009 Free Software Foundation, Inc.
3733N/A#
4607N/A# This program is free software: you can redistribute it and/or modify
4607N/A# it under the terms of the GNU General Public License as published by
4607N/A# the Free Software Foundation, either version 3 of the License, or
4607N/A# (at your option) any later version.
3733N/A#
4607N/A# This program is distributed in the hope that it will be useful,
4607N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
4607N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4607N/A# GNU General Public License for more details.
3733N/A#
4607N/A# You should have received a copy of the GNU General Public License
4607N/A# along with this program. If not, see <http://www.gnu.org/licenses/>.
4607N/A#
3733N/A
3733N/A# In all programs, all terminals, make sure this is bound.
3733N/A"\C-x\C-r": re-read-init-file
3733N/A
3733N/A# Hp terminals (and some others) have ugly default behaviour for C-h.
3733N/A"\C-h": backward-delete-char
3733N/A"\e\C-h": backward-kill-word
3733N/A"\C-xd": dump-functions
3733N/A
3733N/A# In xterm windows, make the arrow keys do the right thing.
3733N/A$if TERM=xterm
3733N/A"\e[A": previous-history
3733N/A"\e[B": next-history
3733N/A"\e[C": forward-char
3733N/A"\e[D": backward-char
3733N/A
3733N/A# alternate arrow key prefix
3733N/A"\eOA": previous-history
3733N/A"\eOB": next-history
3733N/A"\eOC": forward-char
3733N/A"\eOD": backward-char
3733N/A
3733N/A# Under Xterm in Bash, we bind local Function keys to do something useful.
3733N/A$if Bash
3733N/A"\e[11~": "Function Key 1"
3733N/A"\e[12~": "Function Key 2"
3733N/A"\e[13~": "Function Key 3"
3733N/A"\e[14~": "Function Key 4"
3733N/A"\e[15~": "Function Key 5"
3733N/A
3733N/A# I know the following escape sequence numbers are 1 greater than
3733N/A# the function key. Don't ask me why, I didn't design the xterm terminal.
3733N/A"\e[17~": "Function Key 6"
3733N/A"\e[18~": "Function Key 7"
3733N/A"\e[19~": "Function Key 8"
3733N/A"\e[20~": "Function Key 9"
3733N/A"\e[21~": "Function Key 10"
3733N/A$endif
3733N/A$endif
3733N/A
3733N/A# For Bash, all terminals, add some Bash specific hacks.
3733N/A$if Bash
3733N/A"\C-xv": show-bash-version
3733N/A"\C-x\C-e": shell-expand-line
3733N/A
3733N/A# Here is one for editing my path.
3733N/A"\C-xp": "$PATH\C-x\C-e\C-e\"\C-aPATH=\":\C-b"
3733N/A
3733N/A# Make C-x r read my mail in emacs.
3733N/A# "\C-xr": "emacs -f rmail\C-j"
3733N/A$endif
3733N/A
3733N/A# For FTP, different hacks:
3733N/A$if Ftp
3733N/A"\C-xg": "get \M-?"
3733N/A"\C-xt": "put \M-?"
3733N/A"\M-.": yank-last-arg
3733N/A$endif
3733N/A
3733N/A" ": self-insert