From d3ef814b5641e0c4ae973f5cdd507b777b4111f2 Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Sun, 3 May 2020 02:06:57 +0200 Subject: [PATCH] zsh: REALLY fix multiline history saving --- etc/zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index df33651..db5f7cc 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -211,7 +211,7 @@ function precmd() { # Write the last command if successful, using the history buffered by # zshaddhistory(). if [[ $? == 0 && -n "$LASTHIST" && -n $HISTFILE ]] ; then - print -sr "${LASTHIST}" + print -sr "${LASTHIST%%$'\n'}" fi # over-prompt tie in