f2769acdfa283c663bb1bf2b98890766622e410c
- Author
- Marc Cornellà <marc@mcornella.com>
- Committer
- Marc Cornellà <marc@mcornella.com>
- Date
Message
chore(history): show input in confirmation prompt
Fixes https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2175868971
Diff
1diff --git a/lib/history.zsh b/lib/history.zsh
2index fa3db927e71b85efe65931f50e078af79c0b8c31..35da57de27cd6b2abf42815cbb296e8aff28e640 100644
3--- a/lib/history.zsh
4+++ b/lib/history.zsh
5@@ -9,7 +9,7 @@ function omz_history {
6
7 # confirm action before deleting history
8 print -nu2 "This action will irreversibly delete your command history. Are you sure? [y/N] "
9- builtin read
10+ builtin read -E
11 [[ "$REPLY" = [yY] ]] || return 0
12
13 print -nu2 >| "$HISTFILE"