揮発性のメモ2

組込みLinux開発を通じて得た知識と通じずに得た知識をメモ書きしておく

bashの履歴をダブらせない

ignoredupsが効いてない感じがしたので、erasedupsも設定することにした

# history
export HISTCONTROL=ignoreboth:erasedups
export HISTSIZE=2000
export HISTFILESIZE=40000
export HISTTIMEFORMAT='%m/%d %T '

historyコマンド関連のシェル変数 | Cardiff Hill
historyをカスタマイズ!! - Studio3104::BLOG.new
osx - Bash history with timestamps - Unix & Linux Stack Exchange
Bash history: "ignoredups" and "erasedups" setting conflict with common history across sessions - Unix & Linux Stack Exchange