powerline-shell icon indicating copy to clipboard operation
powerline-shell copied to clipboard

Segments from config.json are not being applied

Open JuanCAlpizar opened this issue 5 years ago • 3 comments

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

JuanCAlpizar avatar Oct 08 '18 19:10 JuanCAlpizar

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

  • ~/powerline-shell.json
  • ~/.powerline-shell.json

b-ryan avatar Oct 08 '18 20:10 b-ryan

@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 avatar Oct 08 '18 22:10 JuanCAlpizar

@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?

JuanCAlpizar avatar Oct 08 '18 22:10 JuanCAlpizar