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