Fix issue with shared history in zsh

This commit is contained in:
2018-08-08 13:38:40 +01:00
parent b43b8aa9e6
commit 13cc86f973

View File

@@ -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