Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

using 'fc' to backup 'zhistory (was Re: saving history file based on # of commands)




Someone suggested that I use 'fc' and precmd to call a function to  
backup my zhistory file.

However, I cannot figure out how to do this (I keep ending up with  
a size=0 file).

What I want to do:

backup the _last_50 commands I have entered (otherwise it gets very  
slow waiting for the entire history file to be backed up, and once  
I have it, I'd rather just add to it than start all over each 50  
commands).

Thanks

TjL

--------------------------------------------------------------------
Timothy J. Luoma <luomat@xxxxxxxx>       http://www.nerc.com/~luomat
          My USENET feed is slow and not very reliable
NeXT info via email: send message with SUBJECT: send-ascii info
        NeXT Information:  http://www.nerc.com/~luomat/next



Messages sorted by: Reverse Date, Date, Thread, Author