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