]> git.pld-linux.org Git - packages/bash.git/blobdiff - bash-skel-.bashrc
- skip aliases, etc for non-interactive shells
[packages/bash.git] / 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.486765 seconds and 4 git commands to generate.