summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-05-19 04:38:56 +0000
committerMike Frysinger <vapier@gentoo.org>2007-05-19 04:38:56 +0000
commit30bf39f2d3e00260bbad5cdb722d6ab58a174599 (patch)
tree601020d181d9a83def5aafe31e7c2dc008b7d2c6 /app-shells/bash
parentFix gammu dependency atoms (#178864). (diff)
downloadgentoo-2-30bf39f2d3e00260bbad5cdb722d6ab58a174599.tar.gz
gentoo-2-30bf39f2d3e00260bbad5cdb722d6ab58a174599.tar.bz2
gentoo-2-30bf39f2d3e00260bbad5cdb722d6ab58a174599.zip
enable `type -P dircolors` check for everyone so if the binary is missing (say /usr is not mounted yet), then errors wont be displayed
(Portage version: 2.1.2.7)
Diffstat (limited to 'app-shells/bash')
-rw-r--r--app-shells/bash/files/bashrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/app-shells/bash/files/bashrc b/app-shells/bash/files/bashrc
index 0447fb404c1c..d80f2947b2ea 100644
--- a/app-shells/bash/files/bashrc
+++ b/app-shells/bash/files/bashrc
@@ -50,19 +50,19 @@ match_lhs=""
[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
[[ -z ${match_lhs} ]] \
- && type -p dircolors >/dev/null #BSD#@ \
+ && type -P dircolors >/dev/null \
&& match_lhs=$(dircolors --print-database)
[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
if ${use_color} ; then
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
- if type -p dircolors >/dev/null ; then#BSD#@
+ if type -P dircolors >/dev/null ; then
if [[ -f ~/.dir_colors ]] ; then
eval $(dircolors -b ~/.dir_colors)
elif [[ -f /etc/DIR_COLORS ]] ; then
eval $(dircolors -b /etc/DIR_COLORS)
fi
- fi#BSD#@
+ fi
if [[ ${EUID} == 0 ]] ; then
PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '