Enable History Logging In TCSH Shell

偶尔善良 提交于 2019-12-12 12:39:36

问题


How can I enable logging of all the commands entered in the tcsh shell?

I've tried:

  1. Setting the $history variable to 100.
  2. The $savehist to 99.
  3. Set the $histfile to $home/.history

Typing commands into the shell doesn't save the commands in the history file.


回答1:


In my .tcshrc:

set history=2000
set savehist=(2000 merge)


来源:https://stackoverflow.com/questions/3573095/enable-history-logging-in-tcsh-shell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!