summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-03-20 14:29:58 +0200
committerLars Wirzenius <liw@liw.fi>2024-03-20 14:29:58 +0200
commit01f278f44a4084484040ae51745c9d62ac24c142 (patch)
tree18912f1aeda1129b327bc4cf4a7245d27fdfcbdc
parent55f7e05802bc97cbd3562d0f5975776d84adeec9 (diff)
downloadliw-dot-files-01f278f44a4084484040ae51745c9d62ac24c142.tar.gz
bashrc: use LaptopScratch for Cargo if available
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
-rw-r--r--bashrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 83936b9..57a14ec 100644
--- a/bashrc
+++ b/bashrc
@@ -181,7 +181,9 @@ export ANSIBLE_STDOUT_CALLBACK=yaml
export PYTHONDONTWRITEBYTECODE=1
export STARSHIP_CONFIG=~/.config/starship/config.toml
-if [ -e "$HOME/tmp/cargo" ]; then
+if [ -e /media/liw/LaptopScratch/cargo ]; then
+ export CARGO_TARGET_DIR="/media/liw/LaptopScratch/cargo"
+elif [ -e "$HOME/tmp/cargo" ]; then
export CARGO_TARGET_DIR="$HOME/tmp/cargo"
elif [ -e "$HOME/cargo" ]; then
export CARGO_TARGET_DIR="$HOME/cargo"