mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
Allow overriding -l flag in history
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user