Last active
January 15, 2019 10:19
-
-
Save pbt001/25b9da73a43642d6ac0d57b01c92fe99 to your computer and use it in GitHub Desktop.
[macos setup fresh install script] #cfg #dotfile #fork #macos
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
#! /bin/bash | |
type brew &> /dev/null || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
PACKAGES=( | |
tig | |
ranger | |
git | |
vim | |
wget | |
chunkwm | |
skhd | |
ag | |
coreutils | |
findutils | |
newsboat | |
w3m | |
mpv | |
) | |
echo "Installing Packages..." | |
brew install ${PACKAGES[@]} | |
echo "Done installing packages" | |
APPLICATIONS=( | |
anki | |
vlc | |
deluge | |
licecap | |
iterm | |
) | |
echo "Installing applications..." | |
brew cask install ${APPLICATIONS[@]} | |
echo "Done installing applications" | |
echo "Downloading configs..." | |
cd ~; | |
wget -O .skhdrc "https://gist.githubusercontent.com/afallon02/bfe5e2e3de5ee6e1a301805fb9989ab1/raw/2a63aefa706669b3402c78d35f2c5e2afff6f8dd/.skhdrc" | |
wget -O .chunkwmrc "https://gist.githubusercontent.com/afallon02/665090807e04235d51c0bf30c305c63c/raw/8c51424bd7bfd35017872b15f106107b2fca1f86/.chunkwmrc" | |
wget -O .vimrc "https://gist.github.com/afallon02/99fadbc9fb581ce10998ea037a799c9c" | |
echo "Done downloading configs" | |
echo "Installing Cocoapods" | |
sudo gem install cocoapods | |
echo "Done installing cocoapods" | |
echo "Setting up some macOS config.." | |
defaults write -g com.apple.trackpad.scaling 2 | |
defaults write -g com.apple.mouse.scaling 2.5 | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
#"Setting Dock to auto-hide and removing the auto-hiding delay" | |
defaults write com.apple.dock autohide -bool true | |
defaults write com.apple.dock autohide-delay -float 0 | |
defaults write com.apple.dock autohide-time-modifier -float 0 | |
#"Enabling UTF-8 ONLY in Terminal.app and setting the Pro theme by default" | |
defaults write com.apple.terminal StringEncodings -array 4 | |
defaults write com.apple.Terminal "Default Window Settings" -string "Pro" | |
defaults write com.apple.Terminal "Startup Window Settings" -string "Pro" | |
#"Enabling Safari's debug menu" | |
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true | |
# Don’t automatically rearrange Spaces based on most recent use | |
defaults write com.apple.dock mru-spaces -bool false | |
# Multiple cursor support in Xcode | |
defaults write http://com.apple.dt.Xcode PegasusMultipleCursorsEnabled -bool true | |
killall Finder | |
echo "Done setting up macOS config" | |
echo "Complete!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment