From fb9ca883b9c6f62dafe29461c662d9f88fe71ef5 Mon Sep 17 00:00:00 2001 From: Jannik Zander Date: Wed, 25 May 2016 22:32:33 +0200 Subject: [PATCH] Add .tmp folder in ~ --- .config/profile/rc/environ.sh | 2 +- .config/profile/rc/paths.sh | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.config/profile/rc/environ.sh b/.config/profile/rc/environ.sh index 5faf9db..b1ffb62 100644 --- a/.config/profile/rc/environ.sh +++ b/.config/profile/rc/environ.sh @@ -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; diff --git a/.config/profile/rc/paths.sh b/.config/profile/rc/paths.sh index 90ef4d1..9c3e326 100644 --- a/.config/profile/rc/paths.sh +++ b/.config/profile/rc/paths.sh @@ -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}" -- 2.43.0