From 4be033815672129101c05d0c63f824d9b134a18d Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 6 May 2024 17:07:10 +0300 Subject: [PATCH] zsh: cosmetics --- cli/.config/zsh/prompt.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/.config/zsh/prompt.zsh b/cli/.config/zsh/prompt.zsh index 9dc9c14..d59174b 100644 --- a/cli/.config/zsh/prompt.zsh +++ b/cli/.config/zsh/prompt.zsh @@ -43,7 +43,7 @@ precmd.is_git_repo() { } precmd.prompt.add() { - (( $# < 1 )) && return 1 + (( $# )) || return 1 typeset data=$1 color=$2 [[ -n $prompt_string ]] && prompt_string+=" " if [[ -n $color ]]; then