]> git.pld-linux.org Git - packages/bash.git/blobdiff - bashrc
- official patches
[packages/bash.git] / bashrc
diff --git a/bashrc b/bashrc
index eff48e131df2e2f9d686b2580ffdb7a243852aa6..d6a2ecc63f404bc5401e5a198bafcece54ab9ad8 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -3,6 +3,14 @@
 # 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*)
@@ -11,9 +19,7 @@ case $TERM in
        *)
                ;;
 esac
-
 PS1="[\u@\h \W]\\$ "
-export PS1
 
 alias which="type -p"
 
This page took 0.027646 seconds and 4 git commands to generate.