]> git.pld-linux.org Git - packages/bash.git/commitdiff
- skip aliases, etc for non-interactive shells auto/ti/bash-3_2_25-2
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 14 Nov 2007 00:39:00 +0000 (00:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bash-skel-.bashrc -> 1.3

bash-skel-.bashrc

index db1e45d8c1f4f5bc753fc0bc03e1d52d1e7b2938..16709995cdb98b148b81dd6e57ced0c42ae4e152 100644 (file)
@@ -4,4 +4,9 @@ if [ -f /etc/bashrc ]; then
        . /etc/bashrc
 fi
 
+# return if the shell is not interactive (called from scp, etc)
+if [[ $- != *i* ]]; then
+       return
+fi
+
 # Put your local aliases here
This page took 0.058391 seconds and 4 git commands to generate.