linuxのbashを構成コマンドの大文字と小文字を無視し、入力したコマンドヘッダに基づいて「上」キーを押してコマンドの履歴を表示


一般的にbashはコマンドに対して大文字と小文字を区別し、「上キー」を押すと前の履歴コマンドを表示できます.しかし、これはまだ便利ではありません.次の構成では、bashに大文字と小文字を無視することができます.また、入力したコマンドヘッダに基づいて「上」ボタンを押してコマンドの履歴を表示することができます.例えば、vimを入力して「上」ボタンを押して、vimを前回実行したときのコマンドを表示することができます.とても便利です.
次に、この構成の内容をユーザーのホームディレクトリの下に置きます.
shibo@iZ94wlxkhx8Z:~$ cat .inputrc 
set completion-ignore-case on

#For single press Tab results for when a partial or no completion is possible
set show-all-if-ambiguous on

#For results when no completion is possible
set show-all-if-unmodified on

#History completion bound to arrow keys (down, up)
"\e[A": history-search-backward
"\e[B": history-search-forward

#Bash allows to quickly move between words with Ctrl+Left and Ctrl+Right
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word"