zthxxx/jovial

How can I reduce the size of the path?

pbragamiranda opened this issue · 4 comments

Hi! Thanks for the amazing work, I'm loving jovial. One thing that I wish I could customize is the size of the path.

right now I have the full path ~/code/manegarrincha/portfolio/app/assets/stylesheets

I wish I could have just ~/stylesheets .

Or perhaps choose the number of folders displaying. i.e folders{2} -> ~/assets/stylesheets

I've tried to look into but wasn't successful =/

@pbragamiranda Thanks for your support, and sorry for the late reply.

I have just published the new version v2.5.0 for provide support for override the prompt path part.

According to your needs, you can set like this below, in your ~/.zshrc after load jovial theme:

# '%N~' means display current path with relative to `~` and only display the last `N` folders
JOVIAL_AFFIXES[path]='%2~'

Also, don't forget to upgrade your jovial version:

# if you used `antigen` to installed `jovial`
antigen update zthxxx/jovial

Or just reinstall by rerun installation command: See Install Docs

Thank you so much for your answer!

All fixed here =)

@pbragamiranda Sorry for a bug in v2.5.0 that causes responsive style error due to the new path part,

I have fixed in v2.5.1 which maybe you would to upgrade to it, then rename the path part to current-dir in your .zshrc

- JOVIAL_AFFIXES[path]='%2~'
+ JOVIAL_AFFIXES[current-dir]='%2~'

Great! Thanks for letting me know 🙃