From 13cc86f97348525880bbefe564a75d9b421cdaa2 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 8 Aug 2018 13:38:40 +0100 Subject: [PATCH] Fix issue with shared history in zsh --- zshrc.zsh | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/zshrc.zsh b/zshrc.zsh index 750d7fc..b95b888 100644 --- a/zshrc.zsh +++ b/zshrc.zsh @@ -49,23 +49,6 @@ if [[ $TMPDIR == "/var/folders/"* ]] || [[ $TMPDIR == "" ]]; then mkdir -p "$TMPDIR" fi -# ============================================================================== -# Basic Z-Shell settings -# ============================================================================== - -# Disable auto-title. -DISABLE_AUTO_TITLE="true" - -# Enable bash-style completion. -autoload -U +X compinit && compinit -autoload -U +X bashcompinit && bashcompinit - -# Disable shared history. -unsetopt share_history - -# Disable attempted correction of commands (is wrong 98% of the time). -unsetopt correctall - # ============================================================================== # zplug # ============================================================================== @@ -103,6 +86,14 @@ fi zplug load +# ============================================================================== +# Bash compatibility +# ============================================================================== + +# Enable bash-style completion. +autoload -U +X compinit && compinit +autoload -U +X bashcompinit && bashcompinit + # ============================================================================== # Load custom scripts # ============================================================================== @@ -132,3 +123,16 @@ source "$DOTZSH/kubernetes.zsh" if [ -f "$DOTPFILES/shellrc.sh" ]; then source "$DOTPFILES/shellrc.sh" fi + +# ============================================================================== +# Basic Z-Shell settings +# ============================================================================== + +# Disable auto-title. +DISABLE_AUTO_TITLE="true" + +# Disable shared history. +unsetopt share_history + +# Disable attempted correction of commands (is wrong 98% of the time). +unsetopt correctall