zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "s. keeling" <keeling@spots.ab.ca>
Cc: zsh-users <zsh-users@sunsite.dk>
Subject: Re: Newbie zsh setup warts (history, pipes, export, ...).
Date: Sun, 24 Oct 2004 18:11:16 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.61.0410241803320.23496@toltec.zanshin.com> (raw)
In-Reply-To: <20041024230623.GA3675@infidel.spots.ab.ca>

On Sun, 24 Oct 2004, s. keeling wrote:

> I also don't appear to have history set up correctly.  It's not
> saving my history between sessions.  These are in my ~/.zshenv:
> 
>   -------------------------------
> HISTCONTROL=ignoredups

This is only used by bash2.  You need "setopt HIST_IGNORE_DUPS" to get the 
zsh equivalent.  But if history ignores dups, then this ...

> setopt HIST_EXPIRE_DUPS_FIRST

... is a no-op, because there won't be any dups to expire.

> export        HISTCONTROL         \
>               HISTFILE            \
>               HISTSIZE
>   -------------------------------
> 
> What am I missing here, and does zsh need those last three exported?

No, they don't need to be exported, the latter two just need to be set. 

(It doesn't do any good to both export them and set them in ~/.zshenv, 
because every zsh will re-read ~/.zshenv and clobber the environment 
value.  You'd only export them if e.g. they were set in ~/.zlogin, which 
is not read by non-login shells.)

Clint answered the "missing" part.


  parent reply	other threads:[~2004-10-25  1:12 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-24 23:06 s. keeling
2004-10-25  0:05 ` Clint Adams
     [not found]   ` <20041024232633.GB9382@lorien.comfychair.org>
2004-10-25  1:35     ` s. keeling
2004-10-25 10:19   ` Oliver Kiddle
2004-10-25  1:11 ` Bart Schaefer [this message]
2004-10-25  6:08   ` Wayne Davison
2004-10-25 16:25     ` s. keeling
2004-10-25 18:52       ` Juhapekka Tolvanen
2004-10-25 19:16       ` Jason Price
2004-10-26  3:57         ` s. keeling
2004-10-26  4:15           ` [ION Info #SZW-77636-264]: " s. keeling
2004-10-26  8:46           ` Olivier Tharan
2004-10-26 11:48           ` Nikolai Weibull
2004-10-26 15:16             ` s. keeling
2004-10-26 15:54               ` Nikolai Weibull
2004-10-26 16:27                 ` Bart Schaefer
2004-10-26 17:45                   ` Nikolai Weibull
2004-10-26 18:00                   ` s. keeling

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.61.0410241803320.23496@toltec.zanshin.com \
    --to=schaefer@brasslantern.com \
    --cc=keeling@spots.ab.ca \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).