Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2021 20:26:30 +0000
From:      Mike Clarke <jmc-freebsd2@milibyte.co.uk>
To:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   Unable to share csh history between terminals
Message-ID:  <16000704.Vh8gfE0j03@curlew>

Next in thread | Raw E-Mail | Index | Archive | Help
After googling how to do this I ended up with the following in ~/.cshrc

alias postcmd 'history -S; history -M'
set history = 1000
set histdup = erase
set savehist = (1000 merge)

But the results were disastrous, instead of sharing the history each terminal opened 
with a fresh empty history and wiped out the previous .history file.

What am I doing wrong?

When I remove the postcmd alias I revert to the previous arrangement where each 
terminal window starts with the contents of .history and stores its entire history back 
into the file on exit.

-- 
Mike Clarke



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?16000704.Vh8gfE0j03>