Page 1 of 1

Minor suggestions

Posted: 29. Dec 2009, 22:26
by witek
I don`t know if developers accept suggestions from the users but I guess that prompt color and/or scheme for root user could be different from that for a normal user. I often mistakenly destroyed things from command line when I was logged as root until I changed the color of prompt to red. Now I know that I`m root and have to be careful. I also think that symlinking or sourcing .bashrc in .bash_login wouldn`t be a bad idea.

Re: Minor suggestions

Posted: 29. Dec 2009, 22:56
by gapan
witek wrote:I don`t know if developers accept suggestions from the users...
Of course we do. :D
witek wrote:...but I guess that prompt color and/or scheme for root user could be different from that for a normal user. I often mistakenly destroyed things from command line when I was logged as root until I changed the color of prompt to red. Now I know that I`m root and have to be careful. I also think that symlinking or sourcing .bashrc in .bash_login wouldn`t be a bad idea.
Not bad ideas at all. ;)

Re: Minor suggestions

Posted: 30. Dec 2009, 00:04
by stuckinoregon
I just edit /root/.bashrc and change the line that reads:

Code: Select all

export PS1='[\u@\h \W]\$ ' 
to say:

Code: Select all

export PS1='\[\e[0;31m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[0;31m\]\$ \[\e[m\]\[\e[0;32m\] '
Gives it a nice change from the standard prompt. Why not just add a wiki article with some tweaks like that?

Re: Minor suggestions

Posted: 30. Dec 2009, 08:26
by witek
Mine for root is:

Code: Select all

export PS1="\e[31;1m\u@\h:[\t][\w]\n\\$ \e[0m"
and for average user:

Code: Select all

export PS1="\u@\h:[\t][\w]\n\\$"

Anyway, I guess root`s PS1 should be changed by default. At least its color.

Re: Minor suggestions

Posted: 30. Dec 2009, 08:46
by witek
Let users propose their prompts here and maybe developers choose something :)

By the way: how to add something to wiki?

Re: Minor suggestions

Posted: 30. Dec 2009, 09:31
by Akuna
witek wrote:By the way: how to add something to wiki?
You have to create a new account to be able to log into it
-> Look on the upper right corner of the documentation page.
Different than the forum account (although of course, you can use the same login)

Re: Minor suggestions

Posted: 30. Dec 2009, 12:39
by thenktor
BTW: Didn't we have some bash colors in the past? Or was this in Zenwalk?

Re: Minor suggestions

Posted: 30. Dec 2009, 13:26
by gapan
We didn't and I don't remember zenwalk having any either.

Re: Minor suggestions

Posted: 30. Dec 2009, 14:01
by thenktor
I've mixed up things. What I mean is color highlighting of different file types when you do "ls". This doesn't work in xterm, but it works if you do "ssh localhost" first.

Re: Minor suggestions

Posted: 30. Dec 2009, 14:06
by JRD
Zenwalk hadn't.

I lost my last settings. So, I'll be glad to have nice prompt for regular or super user.