Enable history - dotfiles - leot's dotfiles
 (HTM) hg clone https://bitbucket.org/iamleot/dotfiles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset 2ff929549375d31d2c72a1d06a8c0aa425f43934
 (DIR) parent 676b67ef7e2e308bbefae296b9d9105546dd36b6
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Sun, 30 Sep 2018 02:05:34 
       
       Enable history
       
       - Define XDG_CACHE_HOME earlier in order to be used as part of tcshcachedir
       - Define tcshcachedir, variable that points to directory used as a "cache"
         for tcsh and create it if not present (otherwise no history at all will be
         used!)
       - Set histfile and savehist
       
       Diffstat:
        tcshrc |  13 +++++++++++--
        1 files changed, 11 insertions(+), 2 deletions(-)
       ---
       diff -r 676b67ef7e2e -r 2ff929549375 tcshrc
       --- a/tcshrc    Sat Sep 29 17:29:46 2018 +0200
       +++ b/tcshrc    Sun Sep 30 02:05:34 2018 +0200
       @@ -7,15 +7,26 @@
        bindkey -a -b ^T run-help
        bindkey -a -b -c ^N noice
        
       +# XDG_* variables
       +setenv XDG_CACHE_HOME "/tmp/.xdg-${USER}/.cache"
       +
       +# Create directory for tcsh cache files
       +set tcshcachedir = "${XDG_CACHE_HOME}/tcsh"
       +if (! -d "${tcshcachedir}" ) then
       +       mkdir -p "${tcshcachedir}"
       +endif
       +
        set autolist
        set backslash_quote
        set echo_style = both
        set editors = (vi less noice pvi)
       +set histfile = "${tcshcachedir}/history"
        set histlit
        set prompt = "%B%#%b "
        set prompt2 = "... "
        set promptchars = %#
        set rprompt = "%U%c3%u"
       +set savehist
        set vimoveback # XXX: experimental!
        
        alias helpcommand '( man -h \!:1 > /dev/tty ) >& /dev/null'
       @@ -75,8 +86,6 @@
        setenv XDG_CURRENT_DESKTOP X-Generic
        setenv BROWSER www-browser
        
       -setenv XDG_CACHE_HOME "/tmp/.xdg-${USER}/.cache"
       -
        setenv SXHKD_SHELL "/bin/sh"
        
        # password-store stuffs