diff options
author | Marc Cornellà <marc.cornella@live.com> | 2020-10-27 10:33:21 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2020-10-27 10:33:21 +0100 |
commit | bad9ee00042cc7f63f5271646d31e531a9e8c48c (patch) | |
tree | 0ade3c0fa1773341df0a9a709544eb8ee2dd5e41 /lib/history.zsh | |
parent | fcb6fa78a1304f9a8eff2a7563658de04a13d499 (diff) | |
download | zsh-bad9ee00042cc7f63f5271646d31e531a9e8c48c.tar.gz zsh-bad9ee00042cc7f63f5271646d31e531a9e8c48c.tar.bz2 zsh-bad9ee00042cc7f63f5271646d31e531a9e8c48c.zip |
lib: delete zsh session history list
NOTE: it still lives somewhere in the current zsh process. Run `fc -P` to
restore it.
Diffstat (limited to 'lib/history.zsh')
-rw-r--r-- | lib/history.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
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 "$@" |