b-ryan / powerline-shell

A beautiful and useful prompt for your shell
MIT License
6.22k stars 745 forks source link

Segments from config.json are not being applied #433

Open JuanCAlpizar opened 6 years ago

JuanCAlpizar commented 6 years ago

Hi, I created the config.json using the commands on the readme, and after a few modifications, the file vim ~/.config/powerline-shell/config.json looks like this:

image

As far as I understand, it shouldn't show the hostname or the "$" symbol at the end, however after reloading the .bashrc file, reset my terminal by typing bash and even after I close it and open it again, the prompt looks like the default one:

image

What could it be the cause of this issue?

Thanks beforehand for the help

b-ryan commented 6 years ago

I don't suppose either of these files exist for you, do they?

JuanCAlpizar commented 6 years ago

@b-ryan now that you mention it, the hidden file is present. That is weird, is that the config file that is being applied instead?

JuanCAlpizar commented 6 years ago

@b-ryan I think I found the issue. The first time I installed this, I ran the pip command under my root account, and then generated the config.json with the command from the readme for my regular user. This does not create the .powerline-shell file on either my regular user account or the root account, and the generated config.json file does not affect the settings, I just reran the process to confirm.

Now that you replied I had uninstalled powerline-shell because I did not like the default looks, and reinstalled using sudo from my regular account. This created the .powerline-shell.json file under my user root directory, and once I edited this file, the defaults changed immediately for my local user, but not my root user.

Is it possible to install this project globally with root, so the settings can be applied globally to all users by default?