jhdf /.inputrc

.inputrc is one of the most important dotfiles; sometimes I think it's the most important. The "History" section is a favourite feature; one of readlines' most useful non-standard functions is on C-n and C-p.
########################################################################
#
# Last modified Mon 19 Dec 2005 02:36:39 PM 
#
# Some things might break due to termcap/terminfo settings' differences
#
########################################################################
$include /etc/inputrc

# General
########################################################################

set convert-meta on
  # Essential for Meta compositions to function on a terminal
  # working with the 8th bit. Use C-v for special characters.
  # (this is the default setting)

set bell-style none
set horizontal-scroll-mode on

M-n: universal-argument
M-u: unix-filename-rubout
M-C-r: redraw-current-line

# Completion
########################################################################

# TAB & S-TAB
TAB: menu-complete
"\e[Z": "\M--1\t"
  # reverse-menu-complete

set completion-ignore-case on
set mark-symlinked-directories on

# Standard completion
C-l: complete
set completion-query-items 30
set show-all-if-ambiguous on
set visible-stats on

M-l: clear-screen

# History
########################################################################

set mark-modified-lines on

C-p: history-search-forward
C-n: history-search-backward
M-k: dynamic-complete-history

# Macros
########################################################################

C-b: "| less -iS"
M-a: "\eOD\M-\C-] \eOC"
  # , back to the last space, 

M-c: "| colrm $((${COLUMNS:-80}+1))"
M-e: "\C-] \eOC"
  # Forward to the next space, 

M-g: "| grep "
M-m: "\eb'*\ef*'"
  # word[] -> '*word*'[], for simple words

M-o: "/usr/share/doc/"
M-s: "\M-\C-] "
  # Back to the last space

M-t: "\C-] "
  # Forward to the next space

M-v: "| vim -"

M-;: "<()\eOD"
M-=: "$()\eOD"
M-]: ">/dev/null"

M-0: "/var/log/"

# Slackware
#M-;: "cat /var/log/packages/"
#M-=: "ls /var/log/packages | grep "

# switch xterm's line wrapping
#C-r: "printf %b '\\033[?7l'\C-m"
#  # off
#C-f: "printf %b '\\033[?7h'\C-m"
#  # on

# Special keys
########################################################################

"\e[2~": overwrite-mode
  # 

"\e[3~": delete-char
  # 

"\e[5~": beginning-of-history
  # 

"\e[6~": end-of-history
  # 

# Arrows
"\e[1;5C": forward-word
  # 

"\e[1;5D": backward-word
  #