]> git.zndr.dk Git - dotfiles.git/commitdiff
Add .tmp folder in ~
authorJannik Zander <jannikz@gmail.com>
Wed, 25 May 2016 20:32:33 +0000 (22:32 +0200)
committerJannik Zander <jannikz@gmail.com>
Wed, 25 May 2016 20:32:33 +0000 (22:32 +0200)
.config/profile/rc/environ.sh
.config/profile/rc/paths.sh

index 5faf9db403e14efb9fcd34cf1081104cdd793a46..b1ffb6244fdea4c89f3ddb28ecfa51c9f7c1c9d2 100644 (file)
@@ -8,7 +8,7 @@ export EDITOR=vim;
 export VISUAL=vim;
 export PAGER=less
 #export MYVIMRC="$HOME/.config/vim/vimrc"
-export TMPDIR=~/.cache/tmp
+
 
 # Larger bash history (allow 32³ entries; default is 500)
 export HISTSIZE=32768;
index 90ef4d17fb66551d130958e9bf6b28fa2aa5bf13..9c3e32673f242e78696a0d7bc21068581d444a32 100644 (file)
@@ -1,25 +1,27 @@
 
 # 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}"