summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-11-19 15:20:29 +0200
committerLars Wirzenius <liw@liw.fi>2023-11-19 15:20:29 +0200
commit2ae83596f1d943111f4ad9bcab5a56d6eca471ca (patch)
treefb92386faede291c86b3d872833409cab29029a5
parenta5037969827ef27db9bc336e46cd1b66b0f9e34d (diff)
downloadliw-dot-files-2ae83596f1d943111f4ad9bcab5a56d6eca471ca.tar.gz
bashrc: set TMPDIR if ~/tmp exists
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
-rw-r--r--bashrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index f4e26f8..9fdaa58 100644
--- a/bashrc
+++ b/bashrc
@@ -188,6 +188,10 @@ elif [ -e "$HOME/cargo" ]; then
export CARGO_TARGET_DIR="$HOME/cargo"
fi
+if [ -e "$HOME/tmp" ]; then
+ export TMPDIR="$HOME/tmp"
+fi
+
PROMPT_DIRTRIM=1
set +H