"tools/fiptool/Makefile" did not exist on "c81b1d0f0333eca2bc01e718bd2a1b091647afba"
Commit f8180c3a authored by Marc Cornellà's avatar Marc Cornellà
Browse files

Allow overriding -l flag in history

parent 03758416
...@@ -5,6 +5,8 @@ function omz_history { ...@@ -5,6 +5,8 @@ function omz_history {
if [[ "${@[(i)-c]}" -le $# ]]; then if [[ "${@[(i)-c]}" -le $# ]]; then
echo -n >| "$HISTFILE" echo -n >| "$HISTFILE"
echo >&2 History file deleted. Reload the session to see its effects. echo >&2 History file deleted. Reload the session to see its effects.
elif [[ "${@[(i)-l]}" -le $# ]]; then
builtin fc "$@"
else else
builtin fc "$@" -l 1 builtin fc "$@" -l 1
fi fi
......
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