]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Place tmp files in /tmp/${USER}
authorMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 13 May 2019 16:23:20 +0000 (17:23 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 13 May 2019 16:23:20 +0000 (17:23 +0100)
bash/.bashrc
bash/.profile

index 262240a26400d19c04c15eae12d879cfdff5742d..52753fa0c1b42ae34a981c5474b8905051ab8c63 100644 (file)
@@ -114,5 +114,5 @@ export GPG_TTY=($tty)
 gpg-connect-agent updatestartuptty /bye > /dev/null
 
 export EDITOR="vim"
-export TMPDIR="/home/max/.local/tmp"
+export TMPDIR="/tmp/${USER}"
 eval `dircolors ~/.dir_colors`
index ac900b6d8c78604472769b6ee13edf2dc5d42b42..f4e15bdf819470d4ccfa15c032d95cd7ee8b37a1 100644 (file)
@@ -9,6 +9,10 @@ if test -z "${XDG_RUNTIME_DIR}"; then
   fi
 fi
 
+# Make TMPDIR
+mkdir -p "/tmp/${USER}"
+chmod 770 "/tmp/${USER}"
+
 export QT_QPA_PLATFORM=wayland-egl
 
 if [ -f ~/.config/sway/config.base ]; then