From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.net.au (8.7/8.7) with SMTP id HAA25292 for ; Sun, 8 Oct 1995 07:10:30 +1000 (EST) Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA13088 (5.65c/Gatech-10.0-IDA for ); Sat, 7 Oct 1995 17:09:52 -0400 Received: by math (5.x/SMI-SVR4) id AA07721; Sat, 7 Oct 1995 17:05:14 -0400 Resent-Date: Sat, 7 Oct 1995 19:08:48 +0000 (GMT) Old-Return-Path: From: Joachim Reith To: zsh-workers@math.gatech.edu Subject: using history file Cc: joachimr@sco.com X-Mailer: ScoMail 3.0.Ca Mime-Version: 1.0 Date: Sat, 7 Oct 1995 19:08:48 +0000 (GMT) Message-Id: <9510071908.aa21801@frosch.london.sco.com> Resent-Message-Id: <"2sQVU3.0.Zu1.9kkTm"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/429 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Hi. I'm using zsh since half a year and I'm very content with this shell... The only thing what I haven't figured out until now is the history file. As far as I understood I use the command fc to read and write the history to/from a file. I'm using now fc -R ~/.myfile in ~/.zshrc to read the old history, it's working. But I haven't succeeded with writing the history back. I have put fc -W ~/.myfile resp. fc -A ~/.myfile in ~/.zlogout (and also ~/.logout and with traps), but it didn't writes the history back. At the moment I'm using the alias exit='fc -ln >> ~/.zsh_history ; exit' I have tried zsh-2.6-beta9 and ~10 on SCO. Thanks for any help /Joachim P.S.: A good idea could be to include the fc stuff in the example files in /StartupFiles/*