From 50e8a1dfd737aa7a644e105c791b54706772f126 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Mon, 14 Jul 2025 12:31:38 -0400 Subject: [PATCH] Fix prompt delimiters when some tokens are disabled. --- tcshrc.prompt.final | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tcshrc.prompt.final b/tcshrc.prompt.final index 8191a6b..e3cd400 100644 --- a/tcshrc.prompt.final +++ b/tcshrc.prompt.final @@ -343,14 +343,16 @@ if( ! $?CSHENV_DISABLE_PROMPT_NESTING ) then endif endif +set host_prompt_tail=": " if( ! $?CSHENV_DISABLE_PROMPT_USER ) then set user_prompt_view="${user_color_seq}${user_prompt}%{${sgr_reset}%}" if( ! $?CSHENV_DISABLE_PROMPT_HOST ) then set at_view="${at_color_seq}@" + else + set at_view="${host_prompt_tail}" # Hack endif endif if( ! $?CSHENV_DISABLE_PROMPT_HOST ) then - set host_prompt_tail=": " if( $?CSHENV_DISABLE_PROMPT_GIT && $?CSHENV_DISABLE_PROMPT_PATH ) then set host_prompt_tail="" endif