]> git.pld-linux.org Git - packages/bash.git/blobdiff - bash-skel-.bash_profile
- release 2
[packages/bash.git] / bash-skel-.bash_profile
index fa54adf1608e2b0c9f9b2fb018803864c590c56a..9d98d0fdbb944c6ecba9223c88a4f06e5f2cea60 100644 (file)
@@ -1,24 +1,24 @@
 # .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
 
-HISTSIZE=1000
-HISTFILESIZE=1000
-
-export HISTSIZE HISTFILESIZE
-
-mesg n
-
-TMP=~/tmp
-TMPDIR="$TMP"
-export TMP TMPDIR
+export HISTSIZE=1000
+export HISTFILESIZE=1000
+export TMP=~/tmp
+export TMPDIR=$TMP
 
 # setup LOCALE variables
-#LANG=
-#LC_ALL=
-#export LANG LC_ALL
+#export LANG=
+#export LC_ALL=
+#export LANGUAGE=
+#export TZ=
 
-umask 077
+# only You can access your files
+#umask 077
 
+# turn off accept of 'wall' and 'write':
+#[ ! -x /usr/bin/mesg ] || mesg n
This page took 0.027197 seconds and 4 git commands to generate.