Last active
August 17, 2020 11:17
-
-
Save hjbrandt/e7913ff2a3650653d259c7857851524a to your computer and use it in GitHub Desktop.
Setting up a new 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
# TODO: In your terminal run: | |
# bash ./path/to/this/script | |
# to setup and install applications on your new mac | |
# | |
# XXX: When this script is done and everything is installed do the following to finish up | |
# | |
# TODO: Open ~/.hyper.js and paste these settings in config = {} | |
# shell: '/usr/local/bin/fish', | |
# fontFamily: '"Fira Code", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
# cursorColor: 'rgba(255,255,255,0.8)', | |
# selectionColor: 'rgba(255,255,255,0.3)', | |
# | |
# TODO: Open ~/.config/fish/config.fish and paste | |
# eval (starship init fish) | |
# | |
# ============================== ¯\_(ツ)_/¯ =================================== | |
# Install Xcode CLI | |
echo "Installing Xcode CLI..." | |
xcode-select --install | |
echo "Xcode CLI installation completed" | |
# Install Homebrew | |
if test ! $(which brew); then | |
echo "Installing Homebrew..." | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
echo "Homebrew installation completed" | |
fi | |
# Install CLI apps with Homebrew | |
echo "Installing CLI apps..." | |
apps=( | |
cask | |
node | |
python | |
git | |
go | |
trash | |
fish | |
yarn | |
starship | |
mas | |
) | |
brew install ${apps[@]} | |
echo "CLI apps installation completed" | |
echo "Upgrading and updating Homebrew..." | |
brew upgrade && brew update | |
echo "Done upgrading and updating Homebrew" | |
echo "Installing fisher and adding Z..." | |
# Install fisher | |
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish | |
# Install Z | |
fisher add jethrokuan/z | |
echo "fisher and Z installations completed" | |
# Install GUI apps with Homebrew Cask | |
echo "Installing cask apps..." | |
cask_apps=( | |
# Essential apps | |
1password | |
alfred | |
github | |
adobe-creative-cloud | |
brave-browser | |
vscodium | |
spectacle | |
karabiner-elements | |
megasync | |
mullvadvpn | |
dropbox | |
postman | |
slack | |
notion | |
the-unarchiver | |
hyper | |
iterm2 | |
rocket | |
onyx | |
figma | |
imageoptim | |
disk-inventory-x | |
appcleaner | |
cheatsheet | |
syncthing | |
# Optional apps | |
helium | |
gimp | |
graphql-playground | |
steam | |
vlc | |
folx | |
insomnia | |
discord | |
zeplin | |
cakebrew | |
soulseek | |
flotato | |
signal | |
react-native-debugger | |
reactotron | |
) | |
brew cask install ${cask_apps[@]} | |
echo "Cask installations completed" | |
# Install Mac App Store apps | |
echo "Installing App Store apps..." | |
mas_apps=( | |
1278508951 # Trello | |
1145215534 # Kelir color picker | |
937984704 # Amphetamine | |
973134470 # Be Focused | |
) | |
mas install ${mas_apps[@]} | |
echo "App Store installations completed" | |
echo "Getting that sweet theme for Hyper..." | |
hyper i hyperterm-material-palenight | |
echo "Hyper material theme installed..." | |
echo "*** ALL INSTALLATIONS COMPLETED ***" | |
echo "Now open the script file in a text editor and follow the last couple of manual steps" | |
echo "to make Fish and Starship play together!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment