Minor suggestions
Minor suggestions
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
Of course we do.witek wrote:I don`t know if developers accept suggestions from the users...
Not bad ideas at all.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.
- stuckinoregon
- Posts: 24
- Joined: 24. Dec 2009, 20:03
- Location: Oregon, US
Re: Minor suggestions
I just edit /root/.bashrc and change the line that reads:
to say:
Gives it a nice change from the standard prompt. Why not just add a wiki article with some tweaks like that?
Code: Select all
export PS1='[\u@\h \W]\$ '
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\] '
Re: Minor suggestions
Mine for root is:
and for average user:
Anyway, I guess root`s PS1 should be changed by default. At least its color.
Code: Select all
export PS1="\e[31;1m\u@\h:[\t][\w]\n\\$ \e[0m"
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
Let users propose their prompts here and maybe developers choose something
By the way: how to add something to wiki?
By the way: how to add something to wiki?
Re: Minor suggestions
You have to create a new account to be able to log into itwitek wrote:By the way: how to add something to wiki?
-> Look on the upper right corner of the documentation page.
Different than the forum account (although of course, you can use the same login)
What really matters is where you are going, not where you come from.
Re: Minor suggestions
BTW: Didn't we have some bash colors in the past? Or was this in Zenwalk?
Re: Minor suggestions
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
Zenwalk hadn't.
I lost my last settings. So, I'll be glad to have nice prompt for regular or super user.
I lost my last settings. So, I'll be glad to have nice prompt for regular or super user.