Commit bad9ee00 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

lib: delete zsh session history list

NOTE: it still lives somewhere in the current zsh process. Run `fc -P` to
restore it.
parent fcb6fa78
......@@ -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 "$@"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment