X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=bashrc;h=9c52184b86f529be6855ae472d8edb057a44b44b;hb=f1de13dd9f3aeb6204c2acc91dd88eaa5efdc7e6;hp=b5c245d166501f220b465b5d3e1efcc5e248f49a;hpb=375655d932c47cba5b44f54df4101d08a94129be;p=packages%2Fbash.git diff --git a/bashrc b/bashrc index b5c245d..9c52184 100644 --- a/bashrc +++ b/bashrc @@ -3,10 +3,17 @@ # 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]\\$ " +# 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 alias which="type -p"