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