Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidsonfellipe/db7f20793eb281f39ecf6366fefbd5c2 to your computer and use it in GitHub Desktop.
Save davidsonfellipe/db7f20793eb281f39ecf6366fefbd5c2 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install zsh
brew install zsh
# Configure zsh
touch ~/.zshrc
cat <<EOT >> ~/.zshrc
# Custom aliases
alias ll='ls -alF'
alias dev='cd ~/Developer'
# Set Node.js version manager
export NVM_DIR="\$HOME/.nvm"
[ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh"
# Set PATH for Homebrew
export PATH="/usr/local/sbin:\$PATH"
EOT
# Generate SSH Key Pair
ssh-keygen -t rsa -b 4096 -C "x@fellipe.com"
# Install Node.js and Yarn
brew install node
brew install yarn
# Create "Developer" Folder
mkdir ~/Developer
# Source the updated .zshrc
source ~/.zshrc
echo "Setup complete!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment