mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-11 00:10:08 +00:00
chore(history): show input in confirmation prompt
Fixes https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2175868971
This commit is contained in:
parent
c83ca51b1b
commit
f2769acdfa
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ function omz_history {
|
||||||
|
|
||||||
# confirm action before deleting history
|
# confirm action before deleting history
|
||||||
print -nu2 "This action will irreversibly delete your command history. Are you sure? [y/N] "
|
print -nu2 "This action will irreversibly delete your command history. Are you sure? [y/N] "
|
||||||
builtin read
|
builtin read -E
|
||||||
[[ "$REPLY" = [yY] ]] || return 0
|
[[ "$REPLY" = [yY] ]] || return 0
|
||||||
|
|
||||||
print -nu2 >| "$HISTFILE"
|
print -nu2 >| "$HISTFILE"
|
||||||
|
|
Loading…
Reference in a new issue