[arch-commits] Commit in bash/trunk (profile.bash)

Aaron Griffin aaron at archlinux.org
Tue Sep 22 22:25:35 UTC 2009


    Date: Tuesday, September 22, 2009 @ 18:25:34
  Author: aaron
Revision: 52872

Make /etc/profile.bash source /etc/bash.bashrc

This removes duplicate config entries and allows
login shells to additionally source /etc/bash.bashrc
which is NOT the default

Modified:
  bash/trunk/profile.bash

--------------+
 profile.bash |   18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

Modified: profile.bash
===================================================================
--- profile.bash	2009-09-22 20:48:57 UTC (rev 52871)
+++ profile.bash	2009-09-22 22:25:34 UTC (rev 52872)
@@ -3,23 +3,9 @@
 # Global settings for bash shells
 #
 
-PS1='[\u@\h \W]\$ '
-PS2='> '
-PS3='> '
-PS4='+ '
-
-export PS1 PS2 PS3 PS4
-
 #In the future we may want to add more ulimit entries here,
 # in the offchance that /etc/security/limits.conf is skipped
 ulimit -Sc 0 #Don't create core files
 
-if test "$TERM" = "xterm" -o \
-        "$TERM" = "xterm-color" -o \
-        "$TERM" = "xterm-256color" -o \
-        "$TERM" = "rxvt" -o \
-        "$TERM" = "rxvt-unicode" -o \
-        "$TERM" = "xterm-xfree86"; then
-    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
-    export PROMPT_COMMAND
-fi
+# Source our global bashrc file, to remove duplication of effort
+[ -r /etc/bash.bashrc ] && . /etc/bash.bashrc




More information about the arch-commits mailing list