summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/bash/files/dot-bashrc')
-rw-r--r--app-shells/bash/files/dot-bashrc19
1 files changed, 6 insertions, 13 deletions
diff --git a/app-shells/bash/files/dot-bashrc b/app-shells/bash/files/dot-bashrc
index 78ab5d2adda3..db805d7e8c9a 100644
--- a/app-shells/bash/files/dot-bashrc
+++ b/app-shells/bash/files/dot-bashrc
@@ -1,24 +1,20 @@
# /etc/skel/.bashrc:
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/files/dot-bashrc,v 1.3 2005/07/06 22:10:22 vapier Exp $
-#
+#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
-# that can't tolerate any output.
+# that can't tolerate any output. So make sure this doesn't display
+# anything or bad things will happen !
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
-if [[ $- != *i* ]]; then
- # Shell is non-interactive. Be done now
+if [[ $- != *i* ]] ; then
+ # Shell is non-interactive. Be done now!
return
fi
-# Shell is interactive. It is okay to produce output at this point,
-# though this example doesn't produce any. Do setup for
-# command-line interactivity.
-
-# colors for ls, etc. Prefer ~/.dir_colors #64489
+# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
if [[ -f ~/.dir_colors ]]; then
eval `dircolors -b ~/.dir_colors`
else
@@ -35,6 +31,3 @@ case $TERM in
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
;;
esac
-
-# uncomment the following to activate bash-completion:
-#[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion