Minor suggestions

Other talk about Salix
Post Reply
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Minor suggestions

Post 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.
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Minor suggestions

Post 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. ;)
Image
Image
User avatar
stuckinoregon
Posts: 24
Joined: 24. Dec 2009, 20:03
Location: Oregon, US

Re: Minor suggestions

Post 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?
Image
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: Minor suggestions

Post 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.
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: Minor suggestions

Post by witek »

Let users propose their prompts here and maybe developers choose something :)

By the way: how to add something to wiki?
User avatar
Akuna
Salix Wizard
Posts: 1038
Joined: 14. Jun 2009, 12:25

Re: Minor suggestions

Post 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)
Image
What really matters is where you are going, not where you come from.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Minor suggestions

Post by thenktor »

BTW: Didn't we have some bash colors in the past? Or was this in Zenwalk?
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Minor suggestions

Post by gapan »

We didn't and I don't remember zenwalk having any either.
Image
Image
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Minor suggestions

Post 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.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Minor suggestions

Post by JRD »

Zenwalk hadn't.

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