diff options
| author | Marc Cornellà <marc@mcornella.com> | 2024-06-18 13:32:22 +0200 |
|---|---|---|
| committer | Marc Cornellà <marc@mcornella.com> | 2024-06-18 13:32:22 +0200 |
| commit | f2769acdfa283c663bb1bf2b98890766622e410c (patch) | |
| tree | 0e54d553c5baf734c2383b9ff4ddaf3a1c7bc7e8 | |
| parent | c83ca51b1b2fce89c5eae0b0bc9600ee4df28e08 (diff) | |
| download | zsh-f2769acdfa283c663bb1bf2b98890766622e410c.tar.gz zsh-f2769acdfa283c663bb1bf2b98890766622e410c.tar.bz2 zsh-f2769acdfa283c663bb1bf2b98890766622e410c.zip | |
chore(history): show input in confirmation prompt
Fixes https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2175868971
| -rw-r--r-- | lib/history.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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" |
