]> git.sev.monster Git - dotfiles.git/blame - base/.zprofile
do not hardcode /tmp in .zprofile
[dotfiles.git] / base / .zprofile
CommitLineData
116467fd 1#XXX: ensure we override /etc/profile, gets loaded after .zshenv
dcac60d9 2source ~/.zshenv
3
71722092 4t="${TMPDIR:-/tmp}/home-$LOGNAME"
dcac60d9 5h="$HOME/tmp"
6if [[ ! -e "$t" ]] {
7 mkdir -m 700 "$t" > /dev/null 2>&1
71722092 8 #TODO: check if dir exists after mkdir
dcac60d9 9}
10#allow opaque entries to override
11if [[ ! -e "$h" ]] {
12 ln -sf "$t" "$h" > /dev/null 2>&1
13}
186423fe 14unset t
15unset h
This page took 0.054377 seconds and 4 git commands to generate.