マルチ・プラットホームの総合開発環境。 約 4 ヶ月半ぶりの version up。
UNIX 系 OS 上で動く Windows API の実装。 約 3 週間ぶりの version up。
skin により見た目を変えられる多機能なメディア・プレーヤ for Windows。 約 3 ヶ月ぶりの version up。
set histdup=erace
してる
(all
, prev
は好きじゃない!)
だけだとヒストリ・ファイルに重複が残るので、
以下みたいなダメダメ・スクリプトを書いた。
#!/usr/bin/env ruby
# input and analyze history = Hash::new time = nil cmd = '' while STDIN.gets do line = $_.chomp line.gsub!(/^\s+/, '') if /^\#\+[0-9]+$/ =~ line then time = line cmd = '' elsif /\\$/ =~ line then cmd += line.sub(/\\$/, ' ') else if time then history[cmd+line] = time time = nil end cmd = '' end end
# output history.values.sort.each {|v| k = history.index(v) if k then puts v puts k end }
これをコマンド trim_history として保存。 で、~/.logout に以下を記述。
if ( ! $?histfile ) then set histfile="${HOME}/.history" endif
if ( -f $histfile ) then cp $histfile ${histfile}.old trim_history < ${histfile}.old > $histfile endif
まあ、こんなものかな。 いや、TCSH のヒストリ・ファイルが原因と思われる不具合が Mac OS X 上でよく発生しているので、それの対策です…。
昔使っていた Zsh に戻るとか、BASH に乗り換えちゃうとか、 最近、少し TCSH から心が離れてますね。
ちょこちょこいじりました。