1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-01-16 23:37:55 +08:00

Compare commits

...

3 Commits

Author SHA1 Message Date
dependabot[bot]
c432ca0993
chore(deps): bump urllib3 to 2.2.2 in dependencies workflow (#12516)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 13:40:27 +02:00
Marc Cornellà
f2769acdfa
chore(history): show input in confirmation prompt
Fixes https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2175868971
2024-06-18 13:32:22 +02:00
Marc Cornellà
c83ca51b1b
fix(history): fix confirmation prompt to allow bypass
See https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2171461005
2024-06-18 07:26:38 +02:00
2 changed files with 3 additions and 4 deletions

View File

@ -4,4 +4,4 @@ idna==3.7
PyYAML==6.0.1
requests==2.31.0
semver==3.0.2
urllib3==2.2.1
urllib3==2.2.2

View File

@ -9,9 +9,8 @@ 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 -k1
[[ "$REPLY" = $'\n' ]] || print -u2
[[ "$REPLY" != ([yY]) ]] && return 0
builtin read -E
[[ "$REPLY" = [yY] ]] || return 0
print -nu2 >| "$HISTFILE"
fc -p "$HISTFILE"