Last active
March 13, 2023 14:48
-
-
Save naorye/3aad8b1434d55d0cd027588850d365d7 to your computer and use it in GitHub Desktop.
Script to install mac
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
xcode-select --install | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew list git || brew install git | |
brew list visual-studio-code || brew install --cask visual-studio-code | |
brew list fork || brew install --cask fork | |
brew list maestral || brew install --cask maestral | |
brew list brave-browser || brew install --cask brave-browser | |
brew list slack || brew install --cask slack | |
brew list postgres-unofficial || brew install --cask postgres-unofficial | |
brew list pgadmin4 || brew install --cask pgadmin4 | |
brew list keepassxc || brew install --cask keepassxc | |
brew list authy || brew install --cask authy | |
brew list zoom || brew install --cask zoom | |
brew list vlc || brew install --cask vlc | |
brew list plex-media-server || brew install --cask plex-media-server | |
brew list iterm2 || brew install --cask iterm2 | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash | |
source ~/.zshrc | |
nvm install 16 | |
# https://github.com/kcrawford/dockutil/issues/127 | |
brew install --cask hpedrorodrigues/tools/dockutil | |
dockutil --remove all --no-restart | |
apps=( | |
'/System/Applications/Launchpad.app' | |
"/System/Applications/System Settings.app" | |
"/System/Applications/App Store.app" | |
"/Applications/Safari.app" | |
"/Applications/Brave Browser.app" | |
"/Applications/iTerm.app" | |
"/Applications/Visual Studio Code.app" | |
"/Applications/Fork.app" | |
"/Applications/Postgres.app" | |
"/Applications/pgAdmin 4.app" | |
"/Applications/KeePassXC.app" | |
"/Applications/Authy Desktop.app" | |
"/Applications/Maestral.app" | |
"/Applications/VLC.app" | |
"/Applications/Plex Media Server.app" | |
) | |
for app in "${apps[@]}" | |
do | |
dockutil --add "$app" --no-restart | |
done | |
dockutil --add '' --type spacer --before Safari --no-restart | |
dockutil --add '' --type spacer --before iTerm --no-restart | |
dockutil --add '' --type spacer --before KeePassXC --no-restart | |
dockutil --add '' --type spacer --before VLC --no-restart | |
killall -KILL Dock |
Tiny url: http://tiny.cc/0nf2vz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to run this script, type: