问题
How can I enable logging of all the commands entered in the tcsh shell?
I've tried:
- Setting the $history variable to 100.
- The $savehist to 99.
- 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