From 01f278f44a4084484040ae51745c9d62ac24c142 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 20 Mar 2024 14:29:58 +0200 Subject: bashrc: use LaptopScratch for Cargo if available Signed-off-by: Lars Wirzenius Sponsored-by: author --- bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- cgit v1.2.1