From bad9ee00042cc7f63f5271646d31e531a9e8c48c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Tue, 27 Oct 2020 10:33:21 +0100 Subject: [PATCH] lib: delete zsh session history list NOTE: it still lives somewhere in the current zsh process. Run `fc -P` to restore it. --- lib/history.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/history.zsh b/lib/history.zsh index 8d922a30b..1f0f3cc24 100644 --- a/lib/history.zsh +++ b/lib/history.zsh @@ -6,7 +6,8 @@ function omz_history { if [[ -n "$clear" ]]; then # if -c provided, clobber the history file echo -n >| "$HISTFILE" - echo >&2 History file deleted. Reload the session to see its effects. + fc -p "$HISTFILE" + echo >&2 History file deleted. elif [[ -n "$list" ]]; then # if -l provided, run as if calling `fc' directly builtin fc "$@"