2004年11月24日 (水)
.zsh_history の最適化
.zsh_historyがおっきくなりすぎて、exitに時間かかっちゃうので、(CTL-Rのために)最適化してみた。サイズを小さくしろって話しもあるが。。
日付が今の日付になっちゃうけど、気にしない。
cut -d ';' -f2- hoge | sort | uniq | perl -n -e "next if (m[^vi\s+[^/]]); next if(scalar(split /\s+/) <=2); next if (/^rm/); printf qq{: %s:0;}, time(); print;"
というか、ココまでやるならプログラム作ったほうがよかったのかも。
posted by takefumi
|
この日記へリンク
|
コメント(0)
|
トラックバック(0)

