mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-25 01:47:25 +08:00
Compare commits
No commits in common. "c432ca09932bb0c2f2f7f8862b949b0875615724" and "373a1fd585a09b680fec0fc3a3c22901d86c0a4d" have entirely different histories.
c432ca0993
...
373a1fd585
@ -4,4 +4,4 @@ idna==3.7
|
|||||||
PyYAML==6.0.1
|
PyYAML==6.0.1
|
||||||
requests==2.31.0
|
requests==2.31.0
|
||||||
semver==3.0.2
|
semver==3.0.2
|
||||||
urllib3==2.2.2
|
urllib3==2.2.1
|
||||||
|
|||||||
@ -9,8 +9,9 @@ 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 -E
|
builtin read -k1
|
||||||
[[ "$REPLY" = [yY] ]] || return 0
|
[[ "$REPLY" = $'\n' ]] || print -u2
|
||||||
|
[[ "$REPLY" != ([yY]) ]] && return 0
|
||||||
|
|
||||||
print -nu2 >| "$HISTFILE"
|
print -nu2 >| "$HISTFILE"
|
||||||
fc -p "$HISTFILE"
|
fc -p "$HISTFILE"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user