tcshのコマンドヒストリ表示に日付を入れる方法。
シェル変数historyを次のようにセットする。
set history= ( 1000 "%h %Y/%W/%D %T %R\n" )
表示例:
$ history 101 2011/07/16 12:03 pwd 102 2011/07/16 12:03 ls 103 2011/07/16 12:04 ls -a ... $
ヒストリ表示の書式はプロンプトと同じ。
Manpage of TCSH
http://archive.linux.or.jp/JM/html/tcsh/man1/tcsh.1.html
特別なシェル変数promptの項参照。