diff --git a/install.sh b/install.sh index 064e311..78296ba 100755 --- a/install.sh +++ b/install.sh @@ -4,55 +4,83 @@ # AUTHOR: Thomas Patton # install directory -INSTALL_DIR="/root/" + + +show_help() { + cat < /dev/null ; then + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash + export NVM_DIR="${XDG_CONFIG_HOME}/nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + nvm install 16.15.1 +fi # NEOVIM -wget https://github.com/neovim/neovim/releases/download/v0.9.5/nvim-linux64.tar.gz -tar xzvf nvim-linux64.tar.gz -sudo ln -s "${INSTALL_DIR}nvim-linux64/bin/nvim" /usr/local/bin/nvim +wget ${NEOVIM_INSTALLER} +tar xzvf ${NEOVIM_DIR}.tar.gz +sudo ln -s "${INSTALL_DIR}/${NEOVIM_DIR}/bin/nvim" /usr/local/bin/nvim sudo apt-get install -y python3-venv # RIPGREP curl -LO https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep_13.0.0_amd64.deb sudo apt-get install "./ripgrep_13.0.0_amd64.deb" +# FD +curl -LO https://github.com/sharkdp/fd/releases/download/v10.2.0/fd-musl_10.2.0_amd64.deb +sudo apt-get install "./fd-musl_10.2.0_amd64.deb" + # Git Repository (provided as an argument) if [ -n "$1" ]; then - git clone "$1" "${INSTALL_DIR}.config/nvim" + git clone "$1" "${XDG_CONFIG_HOME}/nvim" else echo "Git repository URL not provided, proceeding without" fi # exit cd ~ - -