# Set PATH so it includes user's private bin if it exists
-if [ -d "${HOME}/bin" ] ; then
- PATH=.:${HOME}/bin:${PATH}
+if [ -d "${HOME}/.local/bin" ] ; then
+ PATH=.:${HOME}/.local/bin:${PATH}
fi
# Set MANPATH so it includes users' private man if it exists
-if [ -d "${HOME}/man" ]; then
- MANPATH="${HOME}/man:${MANPATH}"
+if [ -d "${HOME}/.local/man" ]; then
+ MANPATH="${HOME}/.local/man:${MANPATH}"
fi
# Set INFOPATH so it includes users' private info if it exists
-if [ -d "${HOME}/info" ]; then
- INFOPATH="${HOME}/info:${INFOPATH}"
+if [ -d "${HOME}/.local/info" ]; then
+ INFOPATH="${HOME}/.local/info:${INFOPATH}"
fi
# Set PATH to temporary folders
-export TEMPDIR="${HOME}/tmp"
-export TMPDIR="${HOME}/tmp"
+export TMPDIR="${HOME}/.tmp"
+export TEMPDIR="$TMPDIR"
+mkdir "$TMPDIR"
+chmod 700 "$TMPDIR"
# Set PATH to PREFIX folders
-export PREFIX="${HOME}"
+export PREFIX="${HOME}/.local/"
# Add local libraries to libpath
# LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH}"