Page 1 of 1

what is yoru $PS1

Posted: 06 Sep 2012, 21:55
by jemadux
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

Re: what is yoru $PS1

Posted: 07 Sep 2012, 16:15
by gnuuser
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