chris-marsh / pureline

A Pure Bash Powerline PS1 Command Prompt
MIT License
507 stars 95 forks source link

prompt_module shows wrong string ('$') when root #1

Closed furquan-lp closed 6 years ago

furquan-lp commented 6 years ago

The default prompt_module still shows the dollar sign when root which is not the standard behavior.

Example:

 22:14  furquan@debian-home  ~  $  su
Password: 
 22:16  root@debian-home  /home/furquan  $  
chris-marsh commented 6 years ago

Thanks for the pr and fix. Following form with '#' hadn't occured to me, I tend to mostly use sudo and my root accounts are left as default.

chris-marsh commented 6 years ago

Merged, so going to mark as closed.