Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: allow configuration of wrap length and number of path elements shown for adam1 prompt



On Sun, Jun 22, 2025, at 5:13 PM, zsh@xxxxxxxxxxxx wrote:
> Oops -- I just noticed that I accidentally included two 
> nearly-identical commits/patches; I wanted to fix up a bit of the 
> commit message and remove an errant $base_prompt; sadly, neither commit 
> is 100% correct!
>
> In the commit message, I missed using the generic user@host and instead 
> now everyone on the internet knows that I have a machine named 
> "strawberry". :)
>
> In the code, the line for the prompt when not wrapping should (1) not 
> have an extra $base_prompt, and (2) add 1 for the first %( and not 
> subtract one for the second %(. You'll want this:
>
>     
> path_prompt="%B%F{$prompt_adam1_color2}%($((${prompt_path_ellipsize_num} 
> + 1))~|...|)%${prompt_path_ellipsize_num}~%F{white}"

It'd be easier for potential reviewers if you just send a corrected
patch, noting that it supersedes workers/53800.

-- 
vq




Messages sorted by: Reverse Date, Date, Thread, Author