3

如何启用在 tcsh shell 中输入的所有命令的日志记录?

我试过了:

  1. 将 $history 变量设置为 100。
  2. $savehist 到 99。
  3. 将 $histfile 设置为 $home/.history

在 shell 中键入命令不会将命令保存在历史文件中。

4

1 回答 1

4

在我的 .tcshrc 中:

set history=2000
set savehist=(2000 merge)
于 2010-08-26T17:25:35.620 回答