What's Changed
- feat: truncate prompt current_directory and title to keep last components by @edouard-lopez in #337
Config
馃捇 Prompt shortening
Option |
Default |
Description |
pure_truncate_prompt_current_directory_keeps |
0 |
Truncate working directory path in prompt, but keeps the last to n components (0 full path in current directory) |
set --universal pure_truncate_prompt_current_directory_keeps 2
![image](https://private-user-images.githubusercontent.com/1212392/298910529-6cff3cae-25b7-4898-99af-88b2463f2026.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyOTc1NDQsIm5iZiI6MTcxOTI5NzI0NCwicGF0aCI6Ii8xMjEyMzkyLzI5ODkxMDUyOS02Y2ZmM2NhZS0yNWI3LTQ4OTgtOTlhZi04OGIyNDYzZjIwMjYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjVUMDYzNDA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTM3ZDNlN2ViN2M0ZjBmOWFkMTNiMWY3ODRkNmQ5N2ZhMGZmNWVjZjc5ODEwOGIyNzI5MGQ1ODg5Y2ZiY2JiYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.PQTxtKBXL7lqcXst0VVzaI61xm5sY8Q-2ihQCce5O3M)
馃獰 Window's title shortening
Option |
Default |
Description |
pure_truncate_window_title_current_directory_keeps |
0 |
Truncate working directory path in window title, but keeps the last to n components (0 keep full path in window title) |
set --universal pure_truncate_window_title_current_directory_keeps 2
馃憦 Thanks
Full Changelog: v4.8.3...v4.9.0