[Bug 1324901] [NEW] Enable colors in GCC 4.9
Manuel López-Ibáñez
1324901 at bugs.launchpad.net
Fri May 30 12:11:42 UTC 2014
Public bug reported:
GCC 4.9 supports colored diagnostics. Enabling them requires either
using -fdiagnostics-color=auto or defining GCC_COLORS.
Ubuntu could enable colors in gcc by default just for those users who
already use colors for ls/grep by patching the file /etc/skel/.bashrc
with:
@@ -72,20 +72,21 @@
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
+ export GCC_COLORS=" "
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
** Affects: bash (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1324901
Title:
Enable colors in GCC 4.9
Status in “bash” package in Ubuntu:
New
Bug description:
GCC 4.9 supports colored diagnostics. Enabling them requires either
using -fdiagnostics-color=auto or defining GCC_COLORS.
Ubuntu could enable colors in gcc by default just for those users who
already use colors for ls/grep by patching the file /etc/skel/.bashrc
with:
@@ -72,20 +72,21 @@
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
+ export GCC_COLORS=" "
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1324901/+subscriptions
More information about the foundations-bugs
mailing list