andresgongora / synth-shell

Boost your terminal, script by script
GNU General Public License v3.0
992 stars 241 forks source link

Prompt shows ".." instead of "~" for config dir #243

Closed yani closed 1 year ago

yani commented 1 year ago

When navigating to ~/.config/synth-shell the prompt shows ../.config/synth-shell instead of ~/.config/synth-shell.

(Wrong icon for home dir)

image

My setup is all included scripts and I only removed the HOST in the prompt and changed the user color to purple.

andresgongora commented 1 year ago

You are right, I had never noticed. This only happens in very rare occasions where the current $PWD path has exactly the same length as the requested character limit.

This should be fixed with d82a0e7, but feel free to reopen this issue if your problem persists