Search code examples
oh-my-zsh

oh-my-zsh disable lib history.zsh


Im using oh-my-zsh and there is a feature that is really annoying me. The history is share for each console. I want to disable that and after a review i found that

.oh-my-zsh/lib/history.zsh

has this:

setopt share_history # share command history data

How should I disable this? I mean, what is the RIGHT way. It is a lib not a plugin, if I edit the file I will not get updates for it.


Solution

  • This question is old but anyway:

    As you can use setopt for setting options, you can use unsetopt to unset them.

    Just add

    unsetopt share_history
    

    after having sourced $ZSH/oh-my-zsh.sh

    (and yes, it's really annoying ;) )