You are not logged in.
Pages: 1
Hi all.I returned to Arch from Gentoo recently and the one thing I miss is having different colored text in the console.I dont mean I want to change the font colour - I mean to have a number of different colors in the text so its easier to read.
Something along the lines of pacman-color but for the whole console.Is this possible at all.
Last edited by markisthejob (2009-03-04 16:34:08)
Offline
Well your .bashrc defines some colors for text, and some commands output in color like "ls --color=auto" and "grep --color=auto"
Also most programs (weechat, irssi, ncmpcpp, vim, emacs) support different colors and syntax highlighting.
So, yes, it is possible! You just have to play with config files.
br0tat0chip in #archlinux and on freenode
Offline
Yep, check out .bashrc, aliases and PS1 threads on the forums for examples.
Offline
http://wiki.archlinux.org/index.php/Bashrc
http://wiki.archlinux.org/index.php/Pos … ation_Tips
Last edited by brazzmonkey (2009-03-04 14:14:45)
what goes up must come down
Offline
thanks for the fast replies.I wasnt sure what to search for before.I have exactly what I want now.
Offline
There's actually a commented line in .bashrc that colors your prompt for you when you uncomment it. This came in handy for me as sometimes it's difficult for me to see where the output of a command begins and ends when I run a few commands in a row.
Offline
There's actually a commented line in .bashrc that colors your prompt for you when you uncomment it. This came in handy for me as sometimes it's difficult for me to see where the output of a command begins and ends when I run a few commands in a row.
I don't have such a line in my .bashrc. Could you post it? Thanks.
Offline
This is what I have in my .bashrc:
# Use current DIRCOLORS settings
eval `dircolors -b /etc/DIR_COLORS`
# Use colored grep output.
# Matches are bold blue:
export GREP_COLOR="1;34"
alias grep='grep --color=auto'
# Use colored display in man pages.
# Optimized for white background Xterm.
# - blinking on: magenta
export LESS_TERMCAP_mb=$'\E[35m'
# - bold on: red
export LESS_TERMCAP_md=$'\E[31m'
# - all attributes off
export LESS_TERMCAP_me=$'\E[0m'
# - exit standout mode
export LESS_TERMCAP_se=$'\E[0m'
# - begin standout mode (e.g. status line): bold yellow on blue
export LESS_TERMCAP_so=$'\E[01;44;33m'
# - exit underline mode
export LESS_TERMCAP_ue=$'\E[0m'
# - begin underline mode: blue
export LESS_TERMCAP_us=$'\E[34m'
# Use colored prompts:
#
PS1="\[\e[0;35m\]\u:\[\e[0;34m\]\w\[\e[0;35m\]\$\[\e[0;0m\] "
#
PS2="\[\e[0;35m\]>\[\e[0;0m\] "
PS3="\[\e[0;35m\]-\[\e[0;0m\] "
PS4="\[\e[0;35m\]+\[\e[0;0m\] "Different colors in /root/.bashrc:
# Use root specific colored prompts:
#
PS1="\[\e[0;34m\]\u:\[\e[0;31m\]\w\[\e[0;34m\]#\[\e[0;0m\] "
#
PS2="\[\e[0;34m\]>\[\e[0;0m\] "
PS3="\[\e[0;34m\]-\[\e[0;0m\] "
PS4="\[\e[0;34m\]+\[\e[0;0m\] "Last edited by bernarcher (2009-03-05 02:43:32)
To know or not to know ...
... the questions remain forever.
Offline
Theres actually a pkgbuild to copy gentoo's .bashrc if your interested
http://aur.archlinux.org/packages.php?ID=18418
I use it on all of my systems.
Offline
Pages: 1