3733N/A# My ~/.inputrc file is in -*- text -*- for easy editing with Emacs.
3733N/A# Notice the various bindings which are conditionalized depending
3733N/A# on which program is running, or what terminal is active.
4607N/A# Copyright (C) 1989-2009 Free Software Foundation, Inc.
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.
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.
4607N/A# You should have received a copy of the GNU General Public License
3733N/A# In all programs, all terminals, make sure this is bound.
3733N/A"\C-x\C-r": re-read-init-file
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# In xterm windows, make the arrow keys do the right thing.
3733N/A# alternate arrow key prefix
3733N/A# Under Xterm in Bash, we bind local Function keys to do something useful.
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# For Bash, all terminals, add some Bash specific hacks.
3733N/A"\C-x\C-e": shell-expand-line
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# Make C-x r read my mail in emacs.
3733N/A# "\C-xr": "emacs -f rmail\C-j"