]> git.pld-linux.org Git - packages/bash.git/blobdiff - bashrc
- use ac-branch version
[packages/bash.git] / bashrc
diff --git a/bashrc b/bashrc
index 707e427414b2019a715cc29d66e1c8f54dababde..10de41f8e12464875e5f6ac3dda1c33d0f561588 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -3,15 +3,22 @@
 # System wide functions and aliases
 # Environment stuff goes in /etc/profile
 
-# For some unknown reason bash refuses to inherit
-# PS1 in some circumstances that I can't figure out.
-# Putting PS1 here ensures that it gets loaded every time.
+# If this is an xterm set the title to user@host:dir
+case $TERM in
+       gnome|xterm*|rxvt*)
+               PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
+               ;;
+       *)
+               ;;
+esac
 PS1="[\u@\h \W]\\$ "
 
 alias which="type -p"
 
-for I in /etc/profile.d/*.sh ; do
-       if [ "`grep alias $I`" != "" ]; then
-               . $I
-       fi
-done
+# SYSTEM WIDE ALIASES ETC.
+if [ "$(echo /etc/shrc.d/*.sh)" != "/etc/shrc.d/*.sh" ]; then
+       for i in /etc/shrc.d/*.sh; do
+               . $i
+       done
+       unset i
+fi
This page took 0.064198 seconds and 4 git commands to generate.