Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Newbie zsh setup warts (history, pipes, export, ...).
- X-seq: zsh-users 8110
- From: "s. keeling" <keeling@xxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: Newbie zsh setup warts (history, pipes, export, ...).
- Date: Sun, 24 Oct 2004 19:35:43 -0600
- In-reply-to: <20041025000551.GA21212@xxxxxxxxxxx> <20041024232633.GB9382@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20041024230623.GA3675@xxxxxxxxxxxxxxxxxxx> <20041025000551.GA21212@xxxxxxxxxxx> <20041024230623.GA3675@xxxxxxxxxxxxxxxxxxx> <20041024232633.GB9382@xxxxxxxxxxxxxxxxxxxxx>
- Reply-to: mailing list zsh-users <zsh-users@xxxxxxxxxx>
- Sender: "s. keeling" <keeling@xxxxxxxxxxx>
Incoming from Danek Duvall:
> > I'm uset to doing "set | grep -i blah" but in zsh that produces:
> >
> > Binary file (standard input) matches
>
> Probably because IFS contains a NUL character (and you're using GNU grep).
> You could use the -a option to grep to force it to assume the input is
Thanks. That works.
> > HISTCONTROL=ignoredups
>
> No idea what this is; someone else might answer.
It could be a holdover from bash.
> > HISTFILE=$HOME/.zsh_history
> > HISTSIZE=2000
>
> You also need SAVEHIST=xxx. HISTSIZE is the size of the history any zsh
Ah! Marvy. I'll test that out.
> > export HISTCONTROL \
>
> No, you shouldn't need to do that; they're shell variables, not environment
> variables, and so don't need to be exported. I assume, but I'm not sure,
> that if you export them, subshells will pick up those values. But my .z*
I'm not sure I understand the distinction between shell and env. vars,
but usually yes, exporting them makes them available to sub/child
processes. At least that's what they're for in sh and bash.
Thanks everyone.
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling
- -
Messages sorted by:
Reverse Date,
Date,
Thread,
Author