Powerline: PowerLine is not working with Root

Created on 15 Feb 2016  路  5Comments  路  Source: powerline/powerline

terminal

I'm using Elementary Os, PowerLine is only working for Local user, when I logged in to Root, It's disappeared.

cshell serror in environment bug

Most helpful comment

Adding these three lines to ~root/.bashrc solved the problem

powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/share/powerline/bindings/bash/powerline.sh

All 5 comments

Root is a different user with a different $HOME and thus different location of configuration files. Your user configuration is not supposed to work unless you made it work explicitly (e.g. by symlinking).

Hello, any guide to do this for linux noobies?

@djap96 Root is more or less the same user as your own one. There is nothing special in configuring shell there, configure it like your primary user.

Adding these three lines to ~root/.bashrc solved the problem

powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/share/powerline/bindings/bash/powerline.sh

yes , ok, it is fine to know that. thanks @ZyX-I

Was this page helpful?
0 / 5 - 0 ratings