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:
@@ -49,3 +49,4 @@ source "$DOTSHELL/kubernetes.sh"
|
||||
|
||||
# Environment Setup
|
||||
source "$DOTSHELL/env.sh"
|
||||
source "$DOTSHELL/tmpdir.sh"
|
||||
|
||||
@@ -33,9 +33,3 @@ path_prepend "$HOME/bin"
|
||||
|
||||
# Add dotfiles' bin directory to PATH
|
||||
path_prepend "$DOTBIN"
|
||||
|
||||
# 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
|
||||
|
||||
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