shells, moved test from bottom lines of .bashrc to .bash_profile; test
left in /etc/bashrc as we can't fix local configurations in home dirs
Changed files:
bash-skel-.bash_profile -> 1.7
bash-skel-.bashrc -> 1.4
# .bash_profile - file executed when logging in
-if [ -f ~/.bashrc ]; then
+# execute local (and so system wide) rc file only when interactive (not from scp etc.)
+# bash is too dumb to do in on it's own when started as login shell
+if [ $- = *i* && -f ~/.bashrc ]; then
. ~/.bashrc
fi
# setup LOCALE variables
#export LANG=
#export LC_ALL=
+#export LANGUAGE=
# only You can access your files
#umask 077
-# .bashrc - file executed when executing bash
+# .bashrc - startup file for bash as interactive shell
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
+# Put your local functions and aliases here