More stuff for older versions

This commit is contained in:
2025-02-17 01:57:44 -08:00
parent b5c3ea0edb
commit d20b129666

View File

@ -289,8 +289,8 @@ compdef _bmrm bmrm
function __bm_precmd_hook {
# Auto reload
if [[ "${BM_AUTO_RELOAD}" == 'true' ]] &&
(( ${__bm_last_read_time} < "$(zstat +mtime "${BM_BOOKMARK_PATH}")" )); then
if [[ "${BM_AUTO_RELOAD}" == true ]] &&
(( ${__bm_last_read_time} < $(zstat +mtime "${BM_BOOKMARK_PATH}") )); then
__bm_update_bookmark_list
fi
}