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