what is yoru $PS1

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
User avatar
jemadux
Viking
Posts: 37
Joined: 13 Oct 2010, 19:07

what is yoru $PS1

Postby jemadux » 06 Sep 2012, 21:55

mostly i am using bash and if you dont know about change color on prompt take a look at https://wiki.archlinux.org/index.php/Color_Bash_Prompt

my PS1 for user is
PS1='\[\e[1;32m\]\W \$>>\[\e[0m\] '

and for root is
PS1='\[\e[1;31m\]\W \$>>\[\e[0m\] '


and looks like
Image

User avatar
gnuuser
Berserk
Posts: 449
Joined: 18 Aug 2010, 21:52
Location: northwestern Pa.
Contact:

Re: what is yoru $PS1

Postby gnuuser » 07 Sep 2012, 16:15

amusing :-D
back when i was using dos we could change the prompt by using this command
$p$g=
you could type anything you wanted
my prompt message was I'M READY TO TAKE OVER YOUR MIND HUMAN!
it was amusing to see peoples reaction when they saw that.
:lolup
registered Linux user number 505431
Amateur radio call sign KC3TEC
miracle (mere-ack-ull) :
the aspiration of the indigent, the expectation of the indolent, and the inspiration of the ignorant.

Im so old even dirt was my apprentice!


Return to “Tips & Tricks”