andresgongora / synth-shell

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

Unable to change host in synth-shell-prompt.config #233

Closed cumironin closed 1 year ago

cumironin commented 1 year ago

Describe the bug Unable to change HOST at .config

To Reproduce Steps to reproduce the behavior: Insert HOST=".."

Expected behavior Host will change whenever i insert

andresgongora commented 1 year ago

Hi. HOST is not a valid configuration option in synth-shell-prompt.config. You can change the disposition of the prompt, though. Is that what you are trying to achieve? In that case, yes, you should be able tho change the order of the prompt by moving HOST around. By default, the order is format="USER HOST PWD GIT PYENV TF".

On the other hand, to change your hostname edit your /etc/hostname file as described for example here: https://wiki.archlinux.org/title/Network_configuration#Set_the_hostname

@cumironin please confirm whether I understood your problem ;)

cumironin commented 1 year ago

Hi. HOST is not a valid configuration option in synth-shell-prompt.config. You can change the disposition of the prompt, though. Is that what you are trying to achieve? In that case, yes, you should be able tho change the order of the prompt by moving HOST around. By default, the order is format="USER HOST PWD GIT PYENV TF".

On the other hand, to change your hostname edit your /etc/hostname file as described for example here: https://wiki.archlinux.org/title/Network_configuration#Set_the_hostname

@cumironin please confirm whether I understood your problem ;)

Yes, thank your for your explanation

andresgongora commented 1 year ago

Is it solved then? If not, could you elaborate on what it is you'd like to achieve?

cumironin commented 1 year ago

Yes it's solve, i just remove HOST from format as you say and it's working, thank you.

andresgongora commented 1 year ago

Awesome!