From f8180c3a64754057d696a4fb1cf3639c394377b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Thu, 18 Dec 2014 20:36:56 +0100 Subject: [PATCH] Allow overriding -l flag in history --- lib/history.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/history.zsh b/lib/history.zsh index 21e9c756..e6c94fcc 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