From 3a2dd49ac3e8f614dbc79efab9021b40f35c5476 Mon Sep 17 00:00:00 2001 From: Felix Nehrke Date: Fri, 28 Nov 2025 12:07:40 +0100 Subject: [PATCH] Add configuration for rust/cargo --- .bashrc | 2 ++ .profile | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index f54ed52..1fd946d 100644 --- a/.bashrc +++ b/.bashrc @@ -12,6 +12,8 @@ test -r "$SDKMAN_DIR/bin/sdkman-init.sh" && . "$SDKMAN_DIR/bin/sdkman-init.sh" # init nvm to provide node.js test -r "$NVM_DIR/nvm.sh" && . "$NVM_DIR/nvm.sh" +test -r "$CARGO_HOME/env" && . "$CARGO_HOME/env" + ### HERE WE'RE DONE WITH ALL GENERAL PURPOSE CONFIGS ### ### The following is only relevant for interactive diff --git a/.profile b/.profile index cdada90..587696e 100644 --- a/.profile +++ b/.profile @@ -39,11 +39,13 @@ GIT_PS1_SHOWSTASHSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 GIT_PS1_SHOWUPSTREAM='auto' -# arbitrary variables for required by different tools +# arbitrary variables required by different tools # nvm to use different node.js versions NVM_DIR="$XDG_CONFIG_HOME/nvm" # sdkman to use different java tools in different versions easily SDKMAN_DIR="$XDG_CONFIG_HOME/sdkman" +# rust cargo +CARGO_HOME="$XDG_DATA_HOME/cargo" # homebrew is complicated as shit, lucky me only relevant on macos test `uname` = "Darwin" && test `uname -m` = "arm64" && HOMEBREW_PREFIX=/opt/homebrew test `uname` = "Darwin" && test ! `uname -m` = "arm64" && HOMEBREW_PREFIX=/usr/local