diff --git a/plugins/zbell/zbell.plugin.zsh b/plugins/zbell/zbell.plugin.zsh index 00ac2f76..2fa7e14c 100644 --- a/plugins/zbell/zbell.plugin.zsh +++ b/plugins/zbell/zbell.plugin.zsh @@ -50,13 +50,9 @@ zbell_end() { zbell_lastcmd_tmp="$zbell_lastcmd" regexp-replace zbell_lastcmd_tmp '^sudo ' '' - if [[ $zbell_last_timestamp == $zbell_timestamp ]]; then - return - fi + [[ $zbell_last_timestamp == $zbell_timestamp ]] && return - if [[ $zbell_lastcmd_tmp == "" ]]; then - return; - fi + [[ $zbell_lastcmd_tmp == "" ]] && return zbell_last_timestamp=$zbell_timestamp