chore(history): show input in confirmation prompt

Fixes https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2175868971
This commit is contained in:
Marc Cornellà 2024-06-18 13:32:22 +02:00
parent c83ca51b1b
commit f2769acdfa
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -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"