Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save di0nys1s/e0f459c618c7d45d6fe7cc5066bbecf2 to your computer and use it in GitHub Desktop.
Save di0nys1s/e0f459c618c7d45d6fe7cc5066bbecf2 to your computer and use it in GitHub Desktop.
Keeping a fork up to date
#!/bin/bash
echo "πŸš€ Starting fullstack dev machine setup..."
# --- 1. Install Homebrew ---
if ! command -v brew &> /dev/null; then
echo "πŸ”§ Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "βœ… Homebrew already installed"
fi
brew update
# --- 2. CLI Essentials ---
echo "πŸ“¦ Installing CLI tools..."
brew install git nvm node yarn pnpm zsh zsh-completions wget curl jq unzip httpie
# --- 3. oh-my-zsh ---
if [ ! -d "$HOME/.oh-my-zsh" ]; then
echo "πŸ’‘ Installing Oh My Zsh..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
# --- 4. Node Setup ---
echo "πŸ“¦ Installing Node.js (LTS) via nvm..."
export NVM_DIR="$HOME/.nvm"
mkdir -p "$NVM_DIR"
source "$(brew --prefix nvm)/nvm.sh"
nvm install --lts
nvm use --lts
nvm alias default lts/*
# --- 5. Global npm packages ---
npm install -g typescript eslint prettier next
# --- 6. .NET SDK ---
brew install --cask dotnet-sdk
echo 'export DOTNET_ROOT=/usr/local/share/dotnet' >> ~/.zshrc
echo 'export PATH=$PATH:$DOTNET_ROOT' >> ~/.zshrc
# --- 7. EF Core CLI ---
dotnet tool install --global dotnet-ef
echo 'export PATH="$PATH:$HOME/.dotnet/tools"' >> ~/.zshrc
# --- 8. Docker ---
brew install --cask docker
# --- 9. Terminal, IDEs, and Dev Tools ---
brew install --cask warp
brew install --cask cursor
brew install --cask visual-studio-code
brew install --cask jetbrains-toolbox
brew install --cask powershell
brew install --cask raycast
brew install --cask gitkraken
brew install --cask browserstacklocal
# --- 9b. Communication & Office ---
brew install --cask microsoft-teams
brew install --cask zoom
brew install --cask microsoft-outlook
brew install --cask microsoft-word
brew install --cask microsoft-excel
brew install --cask microsoft-powerpoint
brew install --cask microsoft-to-do
# --- 10. Databases ---
brew install mongodb-community@7 mongodb-database-tools
brew services start mongodb-community@7
brew install redis
brew services start redis
brew install postgresql
brew services start postgresql
# --- 11. DB GUIs ---
brew install --cask mongodb-compass
brew install --cask dbeaver-community
# --- 12. Postman ---
brew install --cask postman
# --- 13. Azure CLI ---
brew install azure-cli
# --- 14. Browsers ---
brew install --cask google-chrome
brew install --cask firefox
brew install --cask microsoft-edge
brew install --cask arc
# --- 15. Zsh Aliases ---
cat <<EOL >> ~/.zshrc
# Custom Aliases
alias gs="git status"
alias gp="git push"
alias gc="git commit"
alias gl="git log --oneline --graph --decorate"
alias serve="npx serve"
EOL
echo "πŸŽ‰ All done! Restart your terminal or run: source ~/.zshrc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment