bash の history
shopt -s histappend
Timestampを残す
history HISTTIMEFORMAT='%F %T ' history
重複履歴を削除
HISTCONTROL=erasedups
SIZEを変更
HISTSIZE=10000
$HOME/.inputrcに以下を追加するとプロンプトから数文字入力してC-n,C-pで、その数文字から始まるコマンドをhistoryから探してくれる。
これはbashだけでなくreadlineを使っているプログラムすべてに有効な設定らしい。
"\C-n":history-search-forward "\C-p":history-search-backward
補完で大文字小文字を無視
set completion-ignore-case on
参考