justjanne / powerline-go

A beautiful and useful low-latency prompt for your shell, written in go
GNU General Public License v3.0
2.73k stars 268 forks source link

Shorten current working directory #364

Open rvinf opened 2 years ago

rvinf commented 2 years ago

Is your feature request related to a problem? Please describe. It is annoying sometime when the present working directory is too long, eg: username/hostname/~/rv/cookbooks/mytestrepos/master

Describe the solution you'd like An option just to display current working directory at the prompt, eg: mytestrepos/master

carstenhag commented 1 year ago

It's not the same thing, but you can use path aliases to have something similar, at least for your most-used folders: https://github.com/justjanne/powerline-go#path-aliases