zsh-users
 help / color / mirror / code / Atom feed
* Sharing zsh history in cygwin.
@ 2005-01-20 12:05 Andrew Markebo
  2005-01-20 12:24 ` Andrew Markebo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrew Markebo @ 2005-01-20 12:05 UTC (permalink / raw)
  To: zsh-users; +Cc: cygwin

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

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.

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.

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

       /Andy

-- 
 Don't walk in front of me, I might be unable to follow you. 
 Don't walk after me, I might be unable to lead you. 
 Just walk by my side and be my friend.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sharing zsh history in cygwin.
  2005-01-20 12:05 Sharing zsh history in cygwin Andrew Markebo
@ 2005-01-20 12:24 ` Andrew Markebo
  2005-01-22  1:25 ` Peter A. Castro
  2005-01-22 21:22 ` Hannu Koivisto
  2 siblings, 0 replies; 4+ messages in thread
From: Andrew Markebo @ 2005-01-20 12:24 UTC (permalink / raw)
  To: zsh-users; +Cc: cygwin

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!


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sharing zsh history in cygwin.
  2005-01-20 12:05 Sharing zsh history in cygwin Andrew Markebo
  2005-01-20 12:24 ` Andrew Markebo
@ 2005-01-22  1:25 ` Peter A. Castro
  2005-01-22 21:22 ` Hannu Koivisto
  2 siblings, 0 replies; 4+ messages in thread
From: Peter A. Castro @ 2005-01-22  1:25 UTC (permalink / raw)
  To: Andrew Markebo; +Cc: zsh-users, 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@fruitbat.org> or <Peter.Castro@oracle.com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sharing zsh history in cygwin.
  2005-01-20 12:05 Sharing zsh history in cygwin Andrew Markebo
  2005-01-20 12:24 ` Andrew Markebo
  2005-01-22  1:25 ` Peter A. Castro
@ 2005-01-22 21:22 ` Hannu Koivisto
  2 siblings, 0 replies; 4+ messages in thread
From: Hannu Koivisto @ 2005-01-22 21:22 UTC (permalink / raw)
  To: Andrew Markebo; +Cc: zsh-users, cygwin

Andrew Markebo <andrew.markebo@comhem.se> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-01-22 21:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-20 12:05 Sharing zsh history in cygwin Andrew Markebo
2005-01-20 12:24 ` Andrew Markebo
2005-01-22  1:25 ` Peter A. Castro
2005-01-22 21:22 ` Hannu Koivisto

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).