Search code examples
unixshellsolaristcsh

Enable History Logging In TCSH Shell


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.


Solution

  • In my .tcshrc:

    set history=2000
    set savehist=(2000 merge)