Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#18409 - [bash] bring more color to the console

Attached to Project: Arch Linux
Opened by Mark (markg85) - Saturday, 20 February 2010, 13:36 GMT
Last edited by Dan Griffiths (Ghost1227) - Saturday, 27 February 2010, 23:13 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I hope i'm in the right category for this. Anyhow, i posted the exact same message on the forum as well: http://bbs.archlinux.org/viewtopic.php?pid=712986

Just for completeness pasted it here:

Hi,

first posting it here so people can discuss it.

What i would like to propose is bringing a little more color in the default archlinux console:
* [user@host ~] $ colors
* grep --color=auto colors

And to give an idea how that looks:
Grep colors: http://img7.imageshack.us/i/grepcolors.png/
Console colors: http://img682.imageshack.us/i/consolecolors.png/

And this is how i did that (in .bashrc):
# Check for an interactive session
[ -z "$PS1" ] && return

alias ls='ls --color=auto'
alias grep='grep --color=auto'
PS1='\033[01m[\033[0m \u\033[01;37m @ \033[0m\h \033[36m\W \033[01;37m]\033[0;32m \$\033[0m '
Now i would propose that this gets included in archlinux itself so every new arch user can enjoy these fancy colors ^_^
This can probably done by editing the global bashrc or the user .bashrc but i leave that up to the people that know what's best.

Let me know what you think of this idea.

Btw. for the grep color. That adjustment is already in bashrc for ls.. but not for grep, so it makes sense to me to include grep..
This task depends upon

Closed by  Dan Griffiths (Ghost1227)
Saturday, 27 February 2010, 23:13 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Closed by request of OP
Comment by Roman Kyrylych (Romashka) - Saturday, 20 February 2010, 17:39 GMT
bbcode doesn't work here, so I edited the description to make links clickable
Comment by Roman Kyrylych (Romashka) - Saturday, 20 February 2010, 17:50 GMT
While I think customization is up to user, the last sentence brings attention to our /etc/skel/bashrc which enables colors for ls by default.
Also there is enable-system-config-files.patch which enables /etc/bash.bashrc just to make colored prompt in X terminals and autoload bash_completion.
I'm in favour of removing this altogether.
EDIT: I was too fast on bash.bashrc, it actually changes the title of a terminal. So ignore this part of a comment.
Comment by Mark (markg85) - Saturday, 20 February 2010, 18:36 GMT
@Roman Kyrylych

You are WHAT? You want to remove all colors and leave the color stuff to the user!
Sure, that's an option but certainly wasn't my intent with opening this feature request.

I hope you could reconsider that and consider my proposal.. although i doubt you will if you want to remove all colors.
Comment by Roman Kyrylych (Romashka) - Saturday, 20 February 2010, 19:08 GMT
Don't worry, I'm not the maintainer of bash, so I'm not deciding here. :-)
And "all colors" in this case is just "alias ls='ls --color=auto'",
and its more about whether it's worth to provide /etc/skel/bash* in the bash package,
considering the fact that prompt is already set in /etc/bash.bashrc and color alias(es) can be easily added by user, if needed.

Loading...