Dirstack with spaces in paths causes issues.
So for now, I'm burning a process on every command, to check for its size by linecount.
This commit is contained in:
@ -366,8 +366,7 @@ if( ! $?CSHENV_DISABLE_PROMPT_PATH ) then
|
|||||||
set path_prompt_view="%{${path_color_seq}%}${path_prompt}%{${sgr_reset}%}"
|
set path_prompt_view="%{${path_color_seq}%}${path_prompt}%{${sgr_reset}%}"
|
||||||
endif
|
endif
|
||||||
if( ! $?CSHENV_DISABLE_PROMPT_DIRS ) then
|
if( ! $?CSHENV_DISABLE_PROMPT_DIRS ) then
|
||||||
set dir_list=`dirs`
|
set dirs_prompt="${#dirstack}"
|
||||||
set dirs_prompt="${#dir_list}"
|
|
||||||
if( ${dirs_prompt} > 1 ) then
|
if( ${dirs_prompt} > 1 ) then
|
||||||
set dirs_prompt_view=" {%{${dirs_color_seq}%}${dirs_prompt}%{${sgr_reset}%}}"
|
set dirs_prompt_view=" {%{${dirs_color_seq}%}${dirs_prompt}%{${sgr_reset}%}}"
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user