Browse Source

chore(history): show input in confirmation prompt

Fixes https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2175868971
Marc Cornellà 10 months ago
parent
commit
f2769acdfa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/history.zsh

+ 1 - 1
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"