Last active
August 22, 2025 09:05
-
-
Save vardumper/f2781d52291c813fff8b26025fd6e3ed to your computer and use it in GitHub Desktop.
macOS Setup
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 | |
| # Configs | |
| ME="Fistname Lastname" | |
| EML="email@website.com" | |
| HOST="mac" | |
| sudo scutil --set HostName $HOST | |
| sudo scutil --set LocalHostName $HOST | |
| sudo scutil --set ComputerName $HOST | |
| dscacheutil -flushcache | |
| git config --global alias.co checkout | |
| git config --global alias.br branch | |
| git config --global alias.ci commit | |
| git config --global alias.st status | |
| git config --global user.name $ME | |
| git config --global user.email $EML | |
| git config --global core.editor "nano" | |
| git config --global --add --bool push.autoSetupRemote true | |
| ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -C $ME | |
| xcode-select --install | |
| # brew | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| # Apps | |
| brew install htop wget php ansible ansible-lint libsass node-sass composer gh fish tar | |
| brew install --cask arc | |
| brew install --cask --no-quarantine syntax-highlight | |
| brew install --cask beekeeper-studio | |
| brew install --cask brave-browser | |
| brew install ddev/ddev/ddev | |
| brew install --cask discord | |
| brew install --cask docker | |
| brew install --cask figma | |
| brew install --cask firefox | |
| brew install --cask google-chrome | |
| brew install --cask miro | |
| brew install --cask postman | |
| brew install --cask redisinsight | |
| brew install --cask skype | |
| brew install symfony-cli/tap/symfony-cli | |
| brew install --cask teamviewer | |
| brew install --cask textmate | |
| brew install --cask visual-studio-code | |
| brew install --cask vlc | |
| brew install --cask zen | |
| # finish DDEV install | |
| mkcert -install | |
| # NVM | |
| brew install nvm | |
| source $(brew --prefix nvm)/nvm.sh | |
| nvm install 18 | |
| nvm install 16 | |
| nvm install node | |
| # shell | |
| echo "/usr/local/bin/fish" >> /etc/shells | |
| chsh -s $(brew --prefix)/bin/fish | |
| # shell extension tide | |
| set -l _tide_tmp_dir (command mktemp -d) | |
| curl https://codeload.github.com/ilancosman/tide/tar.gz/v6 | tar -xzC "$_tide_tmp_dir" | |
| command cp -R $_tide_tmp_dir/*/{completions,conf.d,functions} $__fish_config_dir | |
| fish_path=(status fish-path) exec $fish_path -C "emit _tide_init_install" | |
| # Updatedb and Locate | |
| sudo /usr/libexec/locate.updatedb | |
| echo "alias updatedb='sudo /usr/libexec/locate.updatedb'" >> ~/.zshrc | |
| echo "export PATH='$HOME/.composer/vendor/bin:$PATH'" >> ~/.zshrc | |
| # Upgrade packages | |
| echo "alias brewup='brew update && brew upgrade --greedy --force && brew cleanup --prune=all && composer global update && composer global bump && omz update'" >> ~/.zshrc | |
| # Configure GitHub CLI | |
| gh auth login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment