Re: Sharing zsh history in cygwin.

2005-01-22 Thread Hannu Koivisto
Andrew Markebo [EMAIL PROTECTED] writes:

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

I don't use SHARE_HISTORY (just inc_append_history,
hist_ignore_all_dups, hist_no_store and my history sizes are 100
times larger than yours), but...

 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

...after some cygwin update (a few months ago) my zshs also started
freezing during startup.  I tracked the problem down to HISTFILE
being assigned a file that resides on a network drive (a Linux
samba share in this case, I didn't try anything else).  If I
changed my history file to reside on a local hard drive, zsh no
longer froze.  Is your home directory on a local drive?

-- 
Hannu

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Sharing zsh history in cygwin.

2005-01-21 Thread Peter A. Castro
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 [EMAIL PROTECTED] or [EMAIL PROTECTED]
Cats are just autistic Dogs -- Dr. Tony Attwood

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Sharing zsh history in cygwin.

2005-01-20 Thread Andrew Markebo
A quick note, it works in zsh 4.2.3 compiled on linux. No changes.

  /Andy
-- 
 The eye of the beholder rests on the beauty!


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/