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