mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:06:41 +00:00
10 lines
204 B
Bash
10 lines
204 B
Bash
#
|
|
# TMPDIR setup
|
|
#
|
|
|
|
# Ensure TMPDIR is the same for local and remote ssh logins
|
|
if [[ $TMPDIR == "/var/folders/"* ]] || [[ $TMPDIR == "" ]]; then
|
|
export TMPDIR="/tmp/user-$USER"
|
|
mkdir -p "$TMPDIR"
|
|
fi
|