clean up repetative cargo env sourcing

master
Jordan Orelli 1 year ago
parent a7b8def567
commit 3f257e9ce2

@ -1,11 +1,11 @@
if [[ -f "$HOME/.bashrc" ]]; then if [[ -f "$HOME/.bashrc" ]]; then
source "$HOME/.bashrc" . "$HOME/.bashrc"
fi fi
if [[ -f "$HOME/.cargo/env" ]]; then if [[ -f "$HOME/.cargo/env" ]]; then
source "$HOME/.cargo/env" . "$HOME/.cargo/env"
fi fi
if [[ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]]; then if [[ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]]; then
source "$HOME/.nix-profile/etc/profile.d/nix.sh" . "$HOME/.nix-profile/etc/profile.d/nix.sh"
fi fi

@ -91,10 +91,6 @@ if [ -d /usr/local/go ]; then
export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin
fi fi
if [ -f "$HOME/.cargo/env" ]; then
source "$HOME/.cargo/env"
fi
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

Loading…
Cancel
Save