# System wide functions and aliases
# Environment stuff goes in /etc/profile
+# 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!
+ return
+fi
+
# If this is an xterm set the title to user@host:dir
case $TERM in
- gnome|nxterm|xterm*|rxvt*)
+ gnome*|nxterm|xterm*|rxvt*|konsole*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
*)
;;
esac
-
PS1="[\u@\h \W]\\$ "
-export PS1
alias which="type -p"
done
unset i
fi
-
-[ -n "$TERM" -a "$TERM" != "rxvt" -a "$TERM" != "screen" ] && tty >/dev/null 2>&1 && \
- tput kbs >/dev/null 2>&1 && stty erase `tput kbs`