Last active
February 6, 2021 08:57
-
-
Save AndreBClark/bd91ccbdd199717b37d330899f5aab59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# install nvm | |
if [ ! $NVM_DIR ] | |
then | |
curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh" | zsh | |
. $HOME/.zshrc | |
echo 'installed NVM' | |
else | |
echo 'nvm already installed skipping...' | |
fi | |
if [ ! -x $NVM_BIN/npm ] | |
then | |
. $HOME/.zshrc | |
nvm install node | |
echo 'installed node' | |
else | |
echo 'node already installed, skipping...' | |
fi | |
# install github cli | |
if [ ! -x /bin/gh ] | |
then | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 | |
sudo apt-add-repository https://cli.github.com/packages | |
sudo apt update | |
sudo apt install gh | |
echo 'installed github cli' | |
else | |
echo 'github cli already installed, skipping...' | |
fi | |
# create repo folder | |
if [ ! $HOME/repos ] | |
then | |
mkdir $HOME/repos | |
echo 'created repos folder for github repos' | |
else | |
echo "$HOME/repos already created, skipping..." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment