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 {
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
......
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