Created
August 8, 2023 19:09
-
-
Save davidsonfellipe/db7f20793eb281f39ecf6366fefbd5c2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/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 "[email protected]" | |
# 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