#	.inputrc - bash keybinding file

#	 5 Dec 05	Add Meta-/ as synonym fro ESC dot (see Note).
#	 2 Jul 99	Add F12 as synonym fro ESC dot.
#	 3 Mar 99	Adjust for bash 2.x stupidity.
#	17 Feb 98	Change TAB behaviour.
#	 5 Oct 95	Try ^w for forward-search-history.
#	 6 Jul 95	Try ^z for forward-search-history.
#			Add some colons (:). Clean up.
#	 4 Oct 93	Try ^p for forward-search-history
#	 1 Jun 93	Disable vi-editing-mode

#=============================================================================#

# words which have more than one possible completion cause the matches
# to be listed immediately instead of ringing the bell.

set show-all-if-ambiguous on

#=============================================================================#
# never ring the bell. Always allow use of meta key.
# Provide ksh-style bindings to deal with : in filenames.
# Provide F1 and F2 as alternatives to ksh-style bindings.

set bell-style none
set convert-meta on
"\C-[\C-[":	complete-filename
"\C-[=":	possible-filename-completions
"\C-[[224z":	complete-filename
"\C-[[225z":	possible-filename-completions

# Note 5 Dec 05

# With tthe advent of Solaris 10 and or smiggins, I discovered that
# Meta-/ was being treated like TAB (possible-filename-completions).
# This was really irritating because I usually found myself
# unwittingly pressing Meta-/ when I was aiming for Meta-. and
# missing. Figuring "if you can't lick 'em, join 'em", I have decided
# that I might as well have the same meaning for either, in which case
# a miss is a good as a hit.

# However, I found that when I did 'bind -p | less' there were 2
# meanings for Meta-. namely

#	"\M-.": insert-last-argument
#	"\M-.": yank-last-arg

# This is explained in the bash(1) man page:

#     insert-last-argument (M-., M-_)
#          A synonym for yank-last-arg.


"\M-/":		yank-last-arg	# ESC slash
"\e[193z":	yank-last-arg	# F12


"\C-[\C-H":	backward-kill-word
"\C-[[A":	previous-history
"\C-[[B":	next-history
"\C-[[D":	backward-char
"\C-[[C":	forward-char

"\C-[G":	operate_and_get_next
"\C-[g":	operate_and_get_next

#"\C-[S":	forward-search-history
#"\C-[s":	forward-search-history
#"\C-Z":		forward-search-history
"\C-W":		forward-search-history
"\C-[P":	previous-history
"\C-[N":	next-history



#	Disable vi-editing-mode

"\C-[\C-J":	accept-line
"\C-[\C-M":	accept-line

#M-[:		prefix-meta
#M-A:		previous-history
