From f2769acdfa283c663bb1bf2b98890766622e410c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Tue, 18 Jun 2024 13:32:22 +0200 Subject: [PATCH] chore(history): show input in confirmation prompt Fixes https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2175868971 --- lib/history.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/history.zsh b/lib/history.zsh index fa3db927e..35da57de2 100644 --- a/lib/history.zsh +++ b/lib/history.zsh @@ -9,7 +9,7 @@ function omz_history { # confirm action before deleting history print -nu2 "This action will irreversibly delete your command history. Are you sure? [y/N] " - builtin read + builtin read -E [[ "$REPLY" = [yY] ]] || return 0 print -nu2 >| "$HISTFILE"