mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Break TMPDIR setup out into it's own file
This commit is contained in:
9
shell/tmpdir.sh
Normal file
9
shell/tmpdir.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#
|
||||
# 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
|
||||
Reference in New Issue
Block a user