1 # My ~/.inputrc file is in -*- text -*- for easy editing with Emacs.
3 # Notice the various bindings which are conditionalized depending
4 # on which program is running, or what terminal is active.
7 # Copyright (C) 1989-2002 Free Software Foundation, Inc.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
23 # In all programs, all terminals, make sure this is bound.
24 "\C-x\C-r": re-read-init-file
26 # Hp terminals (and some others) have ugly default behaviour for C-h.
27 "\C-h": backward-delete-char
28 "\e\C-h": backward-kill-word
29 "\C-xd": dump-functions
31 # In xterm windows, make the arrow keys do the right thing.
33 "\e[A": previous-history
38 # alternate arrow key prefix
39 "\eOA": previous-history
44 # Under Xterm in Bash, we bind local Function keys to do something useful.
46 "\e[11~": "Function Key 1"
47 "\e[12~": "Function Key 2"
48 "\e[13~": "Function Key 3"
49 "\e[14~": "Function Key 4"
50 "\e[15~": "Function Key 5"
52 # I know the following escape sequence numbers are 1 greater than
53 # the function key. Don't ask me why, I didn't design the xterm terminal.
54 "\e[17~": "Function Key 6"
55 "\e[18~": "Function Key 7"
56 "\e[19~": "Function Key 8"
57 "\e[20~": "Function Key 9"
58 "\e[21~": "Function Key 10"
62 # For Bash, all terminals, add some Bash specific hacks.
64 "\C-xv": show-bash-version
65 "\C-x\C-e": shell-expand-line
67 # Here is one for editing my path.
68 "\C-xp": "$PATH\C-x\C-e\C-e\"\C-aPATH=\":\C-b"
70 # Make C-x r read my mail in emacs.
71 # "\C-xr": "emacs -f rmail\C-j"
74 # For FTP, different hacks: