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

Re: Sharing zsh history in cygwin.



On Thu, 20 Jan 2005, Andrew Markebo wrote:

> Anyone managed to share command line history between running zsh's in
> latest cygwin's?

Works for me on Cygwin and Linux (Slackware).

> In old times I have done it, unfortunetaly bad tracking when I lost
> it. (Cywgin & zsh 4.2) (think it works with Linux-compiled zsh,
> doublechecking)
>
> Mainly my sharing is decided by:
> # History
> ###################################
> # IncAppendHistory for sharing between shells.. NOW..
> setopt HISTIGNOREDUPS HISTIGNORESPACE EXTENDED_HISTORY
> setopt INC_APPEND_HISTORY SHARE_HISTORY
> HISTSIZE=300
> SAVEHIST=300
> HISTFILE=~/.history
>
> The last line, HISTFILE, freezes the cygwin-distributed zsh
> (4.2.0) just after reading the config-files. Removing just that line
> creates a bunch of .history-XXX files.

Hm... I get only a single ~/.history file.

> On cygwin I configured (by setting "named FIFOs to work" to false) and
> compiled zsh 4.2.3, but it doesn't seem to share the history.

4.2.3s' configure is broken (on Cygwin) right now, so unless you know
what you're doing, I'd wait on it.

> Anyone who have been messing with the history as I do?

This works for me without any problems, using 4.2.0 in Cygwin.  I've
opened three shells and can see/use the commands entered from any of the
three shells by any of the three shells.  I suspect it's something
environmental.  More detail about your system is in order.  The output
from 'cygcheck -s' might be enlightening.

BTW, I just pushed 4.2.1-1 out.  You can give it a try, but I kinda doubt
that'll solve your problems.  On the other hand, it does have the new
/etc/zprofile in it.

BTW, it appears cygwin-announce isn't working...at least I haven't seen
any "[ANNOUNCE]" notices lately.

I'll be pushing out 4.2.3 once I get patches for configure worked out.
Still, I think your problem is something else.  Please submit 'cygcheck -s'
output.

>        /Andy

-- 
Peter A. Castro <doctor@xxxxxxxxxxxx> or <Peter.Castro@xxxxxxxxxx>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood



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