X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=bashrc;h=d6a2ecc63f404bc5401e5a198bafcece54ab9ad8;hb=f1a3a4f1c2310fb21e5676c021034a6e3c980f6c;hp=10de41f8e12464875e5f6ac3dda1c33d0f561588;hpb=7fe4ae5ddb858e4eb7d954cfff6fd73172edd87d;p=packages%2Fbash.git diff --git a/bashrc b/bashrc index 10de41f..d6a2ecc 100644 --- a/bashrc +++ b/bashrc @@ -3,9 +3,17 @@ # 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|xterm*|rxvt*) + gnome|nxterm|xterm*|rxvt*) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' ;; *)