diff --git a/copy.sh b/copy.sh index 123b3eb..652020c 100755 --- a/copy.sh +++ b/copy.sh @@ -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