diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-03-20 14:29:58 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-03-20 14:29:58 +0200 |
commit | 01f278f44a4084484040ae51745c9d62ac24c142 (patch) | |
tree | 18912f1aeda1129b327bc4cf4a7245d27fdfcbdc | |
parent | 55f7e05802bc97cbd3562d0f5975776d84adeec9 (diff) | |
download | liw-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-- | bashrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" |