diff --git a/.config/zsh/prompt.zsh b/.config/zsh/prompt.zsh index 37cf266..64ef0c5 100644 --- a/.config/zsh/prompt.zsh +++ b/.config/zsh/prompt.zsh @@ -34,7 +34,7 @@ precmd_kernel_info() { if [[ ${OS_ID} == "arch" ]] || [[ ${OS_ID_LIKE} == "arch" ]]; then # Arch Linux removes the old kernel when updating, so we can # just check to see if /usr/lib/modules/$(uname -r)/vmlinuz exists - if [[ -f /usr/lib/modules/$(uname -r)/vmlinuz ]]; then + if ! [[ -f /usr/lib/modules/$(uname -r)/vmlinuz ]]; then # kernel update available kernel_info_msg_0_="%F{red} reboot required %f" fi