Solved csh (tcsh) doesn't save history

Is there a way to make csh save history except in a raw console?

What I tried:
- default (starting) settings of .cshrc
- created a new user
- changed the variable environments
- SHLVL=1
- completely delete the ~/.history
- urxvt and xterm with --loginShell/-ls and without
- history -S
- another history, savehist, histfile in ~/.cshrc and unset histfile

While terminal in X, history persists only for the session, when you reboot, the only thing left in the ~/.history is what was entered in the raw console
I don't want to switch to zsh or b*sh(
 
What are the permissions on ~/.history? If I recall correctly it has a problem if it's anything other than 600.
 
What are the permissions on ~/.history? If I recall correctly it has a problem if it's anything other than 600.
600, it would be too easy)

I used to run Xorg/Wayland like this
startx
sway
or something in ~/.login
Makefile:
if ($tty == ttyv0) then
    if !( -f /tmp/.X0-lock ) then
#        startx -- -keeptty >& ~/.xorg.log
        sway
        logout
    endif
endif

Solution:
If I disconnect from the parent console and get out of it, the .history file is now stored correctly
sway & logout
or
startx & sleep 2 && logout
or
Code:
if ($tty == ttyv0) then
    if !( -f /tmp/.X0-lock ) then
#        startx -- -keeptty >& ~/.xorg.log &
        sway &
        logout
    endif
endif
 
Back
Top