andresgongora / synth-shell-prompt

Customize your terminal with colors, extra system information, and eyecandy
GNU General Public License v3.0
40 stars 20 forks source link

How can I change the length of current working path #31

Open tNhanDerivative opened 1 year ago

tNhanDerivative commented 1 year ago

How can I change the length of current working directory. Default value is too short If it's too complicated can I just turn off shorten path

andresgongora commented 1 year ago

You can edit the config under ~/.config/synth-shell. Just set it to whatever value you like. I'ts all documented there ;) Feel free to reopen this issue if it doesn't work for you

tNhanDerivative commented 1 year ago

I have already tried that. In file synth-shell-prompt.sh in the function shortenPath() there's a max_length variable I've already change that, it does nothing. I even comment out all code inside shortenPath(), nothing change.

andresgongora commented 1 year ago

Ohh that's quite odd. Are you running synth-shell prompt for your normal user or for root? Also, after reinstalling, does a new config file appear next to the old one? What OS are you on? What's your terminal emulator?

tNhanDerivative commented 1 year ago

I'm using Fedora 38, my normal user. Okey I will reinstall it and see what happen