lib: delete zsh session history list
NOTE: it still lives somewhere in the current zsh process. Run `fc -P` to
restore it.
Diff
1diff --git a/lib/history.zsh b/lib/history.zsh
2index 8d922a30ba142b64476c81f9d543908cf9476ba1..1f0f3cc2441e1ce8c13d91d13d59ce72b4598538 100644
3--- a/lib/history.zsh
4+++ b/lib/history.zsh
5@@ -6,7 +6,8 @@ function omz_history {
6 if [[ -n "$clear" ]]; then
7 # if -c provided, clobber the history file
8 echo -n >| "$HISTFILE"
9- echo >&2 History file deleted. Reload the session to see its effects.
10+ fc -p "$HISTFILE"
11+ echo >&2 History file deleted.
12 elif [[ -n "$list" ]]; then
13 # if -l provided, run as if calling `fc' directly
14 builtin fc "$@"