From 88bb192ca35675f9a5a450aa5b0438a878129211 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Fri, 7 Mar 2025 23:13:16 -0500 Subject: [PATCH] Directory stack size shouldn't use a PID. Use in-shell array size counting. --- tcshrc.prompt.final | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tcshrc.prompt.final b/tcshrc.prompt.final index 30a4c62..8191a6b 100644 --- a/tcshrc.prompt.final +++ b/tcshrc.prompt.final @@ -364,7 +364,8 @@ if( ! $?CSHENV_DISABLE_PROMPT_PATH ) then set path_prompt_view="%{${path_color_seq}%}${path_prompt}%{${sgr_reset}%}" endif if( ! $?CSHENV_DISABLE_PROMPT_DIRS ) then - set dirs_prompt=`dirs -v | wc -l` + set dir_list=`dirs` + set dirs_prompt="${#dir_list}" if( ${dirs_prompt} > 1 ) then set dirs_prompt_view=" {%{${dirs_color_seq}%}${dirs_prompt}%{${sgr_reset}%}}" endif