From c74a679f4946d560801385ede7570ca4911691ed Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 12 Jan 2020 20:38:39 -0500 Subject: [PATCH] Move history options below zim init so they are not overridden --- .zshrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.zshrc b/.zshrc index 8c451cd..a24f56a 100644 --- a/.zshrc +++ b/.zshrc @@ -4,11 +4,6 @@ then source ~/.zim/zimfw.zsh install fi -# Remove older command from the history if a duplicate is to be added. -setopt HIST_IGNORE_ALL_DUPS -unsetopt SHARE_HISTORY -setopt INC_APPEND_HISTORY - # Set editor default keymap to emacs bindkey -e stty -ixon #disable XON/XOFF, which breaks C-s @@ -49,6 +44,11 @@ source $HOME/.aliases/general # Various Options unsetopt NOMATCH # turn off "no matches found" on glob failure +# Remove older command from the history if a duplicate is to be added. +setopt HIST_IGNORE_ALL_DUPS +unsetopt SHARE_HISTORY # don't share history between terminals +setopt INC_APPEND_HISTORY + # rehashes on bin change, might cause performance issues zstyle ':completion:*' rehash true