I got it to work by just saving the commands to ~/.inputrc
. .xinputrc
is only used by X applications.
Don't you need page up and page down to scroll Terminal windows though? I've assigned the history-search commands to ⌥↑ and ⌥↓.
"\e\e[A": history-search-backward "\e\e[B": history-search-forward