Fix prompt delimiters when some tokens are disabled.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user