
I'm using Elementary Os, PowerLine is only working for Local user, when I logged in to Root, It's disappeared.
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
Most helpful comment
Adding these three lines to ~root/.bashrc solved the problem