Skip to content

Commit

Permalink
chore(history): show input in confirmation prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
mcornella authored and ttelford committed Jun 26, 2024
1 parent 1a69ad5 commit 0f61c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/history.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0f61c02

Please sign in to comment.