Add configuration for rust/cargo
This commit is contained in:
2
.bashrc
2
.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
|
# init nvm to provide node.js
|
||||||
test -r "$NVM_DIR/nvm.sh" && . "$NVM_DIR/nvm.sh"
|
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
|
### HERE WE'RE DONE WITH ALL GENERAL PURPOSE CONFIGS
|
||||||
###
|
###
|
||||||
### The following is only relevant for interactive
|
### The following is only relevant for interactive
|
||||||
|
|||||||
4
.profile
4
.profile
@@ -39,11 +39,13 @@ GIT_PS1_SHOWSTASHSTATE=1
|
|||||||
GIT_PS1_SHOWUNTRACKEDFILES=1
|
GIT_PS1_SHOWUNTRACKEDFILES=1
|
||||||
GIT_PS1_SHOWUPSTREAM='auto'
|
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 to use different node.js versions
|
||||||
NVM_DIR="$XDG_CONFIG_HOME/nvm"
|
NVM_DIR="$XDG_CONFIG_HOME/nvm"
|
||||||
# sdkman to use different java tools in different versions easily
|
# sdkman to use different java tools in different versions easily
|
||||||
SDKMAN_DIR="$XDG_CONFIG_HOME/sdkman"
|
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
|
# 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=/opt/homebrew
|
||||||
test `uname` = "Darwin" && test ! `uname -m` = "arm64" && HOMEBREW_PREFIX=/usr/local
|
test `uname` = "Darwin" && test ! `uname -m` = "arm64" && HOMEBREW_PREFIX=/usr/local
|
||||||
|
|||||||
Reference in New Issue
Block a user