mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-06-21 18:11:42 +02:00
fix(history): handle HIST_STAMPS with whitespace in timestamp format (#13099)
Co-authored-by: Kirill Fedorov <kfedorov@ibsys.ru>
This commit is contained in:
parent
881c8b78d3
commit
40c2a72e03
@ -18,10 +18,10 @@ function omz_history {
|
|||||||
print -u2 History file deleted.
|
print -u2 History file deleted.
|
||||||
elif [[ $# -eq 0 ]]; then
|
elif [[ $# -eq 0 ]]; then
|
||||||
# if no arguments provided, show full history starting from 1
|
# if no arguments provided, show full history starting from 1
|
||||||
builtin fc $stamp -l 1
|
builtin fc "${stamp[@]}" -l 1
|
||||||
else
|
else
|
||||||
# otherwise, run `fc -l` with a custom format
|
# otherwise, run `fc -l` with a custom format
|
||||||
builtin fc $stamp -l "$@"
|
builtin fc "${stamp[@]}" -l "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user