mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-16 23:37:55 +08:00
Compare commits
3 Commits
373a1fd585
...
c432ca0993
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c432ca0993 | ||
|
|
f2769acdfa | ||
|
|
c83ca51b1b |
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user