sindresorhus / pure

Pretty, minimal and fast ZSH prompt
MIT License
13.12k stars 971 forks source link

Allow customising terminal title format or disabling it altogether #657

Closed benjamineskola closed 2 months ago

benjamineskola commented 1 year ago

I'm sure this could be improved upon but hopefully it's useful even as a starting point.

I had to add passing the "$@" from the hook functions into prompt_pure_set_title, or it wouldn't be available to user-defined formats (which makes the preexec arguments $3, $4, and $5). I also changed ignore-escape to expand-prompt, again so a user can make use of that feature, which means the ignore-escape mode is never used and perhaps it could be removed?

Fixes #656

cgsdev0 commented 1 year ago

any update on this? i am interested in this feature