# System wide functions and aliases
# Environment stuff goes in /etc/profile
-# If shell is run in environment without set PS1
-if [ ! "$PS1" ]; then
- case $TERM in
- gnome|xterm*|rxvt)
- PS1="\[\033]0;\u@\h: \w\007\][\u@\h \W]\\$ "
- ;;
- *)
- PS1="[\u@\h \W]\\$ "
- ;;
- esac
-fi
+# 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"
# SYSTEM WIDE ALIASES ETC.
-for i in `find /etc/shrc.d -name '*.sh'` ; do
- . $i
-done
-unset i
-
-stty erase `tput kbs`
+if [ "$(echo /etc/shrc.d/*.sh)" != "/etc/shrc.d/*.sh" ]; then
+ for i in /etc/shrc.d/*.sh; do
+ . $i
+ done
+ unset i
+fi