Skip to content

Instantly share code, notes, and snippets.

@gmdias727
Created September 27, 2023 11:13
Show Gist options
  • Save gmdias727/947b454d4aca18521a88c5f92a4a1a2d to your computer and use it in GitHub Desktop.
Save gmdias727/947b454d4aca18521a88c5f92a4a1a2d to your computer and use it in GitHub Desktop.
#!/bin/bash
# basic system update and cleanup
sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y
sudo apt install git curl neovim -y
# install nvm steps
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
node -v # should display node version
npm -v # should display npm version
### end
# alias neovim as vim
alias vim=nvim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment