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
source "$HOME/.bashrc"
. "$HOME/.bashrc"
fi
if [[ -f "$HOME/.cargo/env" ]]; then
source "$HOME/.cargo/env"
. "$HOME/.cargo/env"
fi
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

@ -91,10 +91,6 @@ if [ -d /usr/local/go ]; then
export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin
fi
if [ -f "$HOME/.cargo/env" ]; then
source "$HOME/.cargo/env"
fi
export NVM_DIR="$HOME/.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

Loading…
Cancel
Save