From 4a8aa80c2ec456b6b00f39fe897f9929edd1749c Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Tue, 3 Dec 2024 11:32:09 +0100 Subject: [PATCH] fix: remove timestamp from Zsh history When HISTFILE is shared with Bash, the shell doesn't know how to interpret timestamp. --- files/sh/.config/zsh/.zshrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/sh/.config/zsh/.zshrc b/files/sh/.config/zsh/.zshrc index 4ef3182..aa2f42d 100644 --- a/files/sh/.config/zsh/.zshrc +++ b/files/sh/.config/zsh/.zshrc @@ -26,12 +26,11 @@ setopt no_beep setopt interactive_comments ## - History SAVEHIST="$HISTSIZE" +setopt no_extended_history setopt hist_expire_dups_first # purge dups first setopt hist_ignore_dups # ignore dups in history list setopt hist_verify # if command has hist expansion, show it before executing -setopt append_history # append instead of replacing -setopt share_history # share history across sessions -setopt no_inc_append_history # conflicts with share_history +setopt inc_append_history # append command to history as soon as it runs ## - Expansion setopt auto_cd setopt no_nomatch # if a pattern has no matches print an error