From 723943fd1f7717f0d6319f0f59fc1c17af78fc09 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Mon, 13 Jan 2025 14:54:00 +0100 Subject: [PATCH] fish_jj_prompt: Return false if nothing was generated That means we go on to try git etc --- share/functions/fish_jj_prompt.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/functions/fish_jj_prompt.fish b/share/functions/fish_jj_prompt.fish index b65f103ed..d0c07a691 100644 --- a/share/functions/fish_jj_prompt.fish +++ b/share/functions/fish_jj_prompt.fish @@ -15,7 +15,8 @@ function fish_jj_prompt ) ' )" - if test -n $info + or return 1 + if test -n "$info" printf ' %s' $info end end