Prevent error in emacs-bookmark.zsh

This commit is contained in:
2026-01-27 17:37:57 -08:00
parent cf6d4b4f8b
commit 1e421c0083

View File

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