[Grml] RC: disable zshrc's share_history feature by default?

Csillag Tamas cstamas at digitus.itk.ppke.hu
Mon Mar 25 11:13:33 CET 2013


On Mon, Mar 25, 2013 at 10:47:40AM +0100, Michael Prokop wrote:
> Hi,
> Grml's zshrc [http://grml.org/zsh/] uses 'setopt share_history' by
> default since ages.
> This option is responsible for making the history of one Zsh session
> available to others "kind-of-immediately". So when sending 'echo
> foobar' in one terminal, then pressing e.g. <return> in another zsh
> session of the same user then cursor up will show 'echo foobar' on
> the command line.
> While I personally like the feature and somewhat got used to it it's
> also one of the most discussed settings of grml-zshrc. It has the
> potential to do harm, especially if you aren't aware of that
> feature.

What is the potential harm?

> This is why I'd like to disable this setting by default (but provide
> it as commented feature so it's trivial to just enable it on
> request). Of course you will be able to just customize it via e.g.
> .zshrc.local, it's really just about the default behaviour.

What will happen then?

The histories will still get merged, but only at the end of the session?
If one or the other overwrites the history file I would vote against it.

On the other hand it is grml where I learned and got used to zsh and this was
one of its great features. :)

Maybe the grml distribution and users fetching grml's zsh config from grml.org/zsh
has a different use case (I am not sure) let me explain:
On a server there can be more root users operating in parallel
on a grml live system there is usually one and typing in one shell then the
capability to see that on the other's history is a great thing.

CSILLAG Tamas (cstamas) - http://cstamas.hu/

More information about the Grml mailing list