mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-25 22:00:15 +08: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
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user