You are not logged in.

#1 2012-12-26 08:41:36

stefkee
Member
From: Serbia
Registered: 2012-11-09
Posts: 32
Website

[SOLVED]PS1 Script Problem

Hello brothers archers!

I founded this sweet PS1 here: https://bbs.archlinux.org/viewtopic.php?id=50885&p=14

But, when I change from user to root in terminal i get following problem(PS1 DISSAPEARS!!)

screenshot-12262012-0938.png

and this happens:

screenshot-12262012-0938.png


Any way to fix it?

Thanks smile

Last edited by stefkee (2012-12-26 13:26:46)


[img]http://img97.imageshack.us/img97/8027/15735.png[/img]

Offline

#2 2012-12-26 10:25:04

Xylankant
Member
From: Saarland, Germany
Registered: 2011-04-26
Posts: 21

Re: [SOLVED]PS1 Script Problem

su switches to the super user, so of course, you are using su's PS1 wink

just edit /root/.bashrc as root, and insert the code for your custom PS1 there, that should do the trick next time you log in via su.

alternatively, try loggin in via "su -". This will use the current user's environment for the super user, thus it should also use your custom PS1.

Last edited by Xylankant (2012-12-26 10:25:30)

Offline

#3 2012-12-26 13:26:34

stefkee
Member
From: Serbia
Registered: 2012-11-09
Posts: 32
Website

Re: [SOLVED]PS1 Script Problem

Thank you soo much! It works!!!!


[img]http://img97.imageshack.us/img97/8027/15735.png[/img]

Offline

Board footer

Powered by FluxBB