mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
lib: delete zsh session history list
NOTE: it still lives somewhere in the current zsh process. Run `fc -P` to restore it.
This commit is contained in:
parent
fcb6fa78a1
commit
bad9ee0004
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@ function omz_history {
|
||||||
if [[ -n "$clear" ]]; then
|
if [[ -n "$clear" ]]; then
|
||||||
# if -c provided, clobber the history file
|
# if -c provided, clobber the history file
|
||||||
echo -n >| "$HISTFILE"
|
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
|
elif [[ -n "$list" ]]; then
|
||||||
# if -l provided, run as if calling `fc' directly
|
# if -l provided, run as if calling `fc' directly
|
||||||
builtin fc "$@"
|
builtin fc "$@"
|
||||||
|
|
Loading…
Reference in a new issue