From 7b425f78a2a2530c9274453fa13b57e4ea89383a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=A4llberg?= Date: Tue, 3 Feb 2026 12:57:45 +0100 Subject: [PATCH] Fix #2041 for fish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Piping the prompt through echo breaks things like newlines! Just use printf instead. Signed-off-by: Andreas Källberg --- internal/devbox/shellrc_fish.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/devbox/shellrc_fish.tmpl b/internal/devbox/shellrc_fish.tmpl index 26ecfb7eaf2..a02c4ded927 100644 --- a/internal/devbox/shellrc_fish.tmpl +++ b/internal/devbox/shellrc_fish.tmpl @@ -43,7 +43,8 @@ set fish_history devbox if not set -q devbox_no_prompt functions -c fish_prompt __devbox_fish_prompt_orig function fish_prompt - echo "(devbox)" (__devbox_fish_prompt_orig) + printf "(devbox) " + __devbox_fish_prompt_orig end end