From ddf58318626740fcb16a012c264fb6d3c4231fde Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Mon, 8 Jan 2024 17:53:16 -0500 Subject: [PATCH] Add wget check --- copy.sh | 5 +++++ fake_home/.bashrc | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/copy.sh b/copy.sh index d99dea7..644bfc8 100755 --- a/copy.sh +++ b/copy.sh @@ -3,6 +3,11 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" FAKE_HOME="$SCRIPT_DIR/fake_home" +if ! command -v wget &> /dev/null; then + echo "wget must be installed!" + exit 1 +fi + git submodule init git submodule update diff --git a/fake_home/.bashrc b/fake_home/.bashrc index b3d18fc..7e755db 100644 --- a/fake_home/.bashrc +++ b/fake_home/.bashrc @@ -141,3 +141,7 @@ ex () source ~/.shell_aliases . "$HOME/.cargo/env" + +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