summaryrefslogtreecommitdiff
path: root/lib/history.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/history.zsh')
-rw-r--r--lib/history.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/history.zsh b/lib/history.zsh
index 21e9c7563..e6c94fcc0 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -5,6 +5,8 @@ function omz_history {
if [[ "${@[(i)-c]}" -le $# ]]; then
echo -n >| "$HISTFILE"
echo >&2 History file deleted. Reload the session to see its effects.
+ elif [[ "${@[(i)-l]}" -le $# ]]; then
+ builtin fc "$@"
else
builtin fc "$@" -l 1
fi