1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-22 20:31:57 +00:00

Allow overriding -l flag in history

This commit is contained in:
Marc Cornellà 2014-12-18 20:36:56 +01:00
parent 03758416fe
commit f8180c3a64

View file

@ -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