Tweak bat and nvm install conditions

This commit is contained in:
Sage Vaillancourt 2023-08-26 00:19:20 -04:00
parent 01e599b4c0
commit 166bcf6c4d
1 changed files with 2 additions and 2 deletions

View File

@ -32,10 +32,10 @@ else
echo "installed."
fi
. "$HOME/.cargo/env"
if command -v cargo; then
if command -v cargo && ! command -v bat; then
cargo install bat
fi
if ! command -v nvm; then
if ! test -d "$HOME/.nvm"; then
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm