]> git.pld-linux.org Git - packages/bash.git/blobdiff - bashrc
oops
[packages/bash.git] / bashrc
diff --git a/bashrc b/bashrc
index 3c5eeb10676ea92ab5cb107c0144dfd836315e6c..85fe46fd773be5833358727644fc133c5bc3bff9 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -3,14 +3,23 @@
 # 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.
-PS1="[\u@\h \W]\\$ "
+# We set PS1 for each terminal:
+case $TERM in
+       gnome|nxterm|xterm*|rxvt)
+               PS1="\[\033]0;\u@\h: \w\007\][\u@\h \W]\\$ "
+               ;;
+       *)
+               PS1="[\u@\h \W]\\$ "
+               ;;
+esac
+export PS1
 
 alias which="type -p"
 
-for i in /etc/shrc.d/*.sh ; do
-       [ -r $i ] && . $i
+# SYSTEM WIDE ALIASES ETC.
+for i in `find /etc/shrc.d -name '*.sh'` ; do
+       . $i
 done
 unset i
+
+[ "`LC_ALL= tty`" = "not a tty" ] || stty erase `tput kbs`
This page took 0.029848 seconds and 4 git commands to generate.