Skip to content

Instantly share code, notes, and snippets.

@iSkore
Last active May 12, 2016 19:00
Show Gist options
  • Save iSkore/a5f07b094faf6c8c1c7c to your computer and use it in GitHub Desktop.
Save iSkore/a5f07b094faf6c8c1c7c to your computer and use it in GitHub Desktop.
Mac environment needs

Environment needs

Constantly updated list of environment needs for OSX environment

  1. Magnet - go throught the set up and boot at login
  2. WebStorm - License it, theme = dracula, javascript = ES6, keybind Run = ⌘R
#!/bin/bash

while true; do
	read -p "Are you ready to install everything good in this world? This might take a while but it's ok! [y/n]" yn
	case $yn in
		[Yy]* ) echo "Awesome! Now we continue."; break;;
		[Nn]* ) echo "Why? Good bye"; exit;;
		* ) echo "Please answer yes or no.";;
	esac
done

sudo xcodebuild -license

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew doctor
export PATH="/usr/local/bin:$PATH"
brew install node
brew upgrade node
sudo npm update npm -g
sudo npm i -g pm2
brew install wget
brew install git
brew cask install google-chrome
open -a "Google Chrome" --args --make-default-browser
brew cask install atom

alias showfiles="\ndefaults write com.apple.finder AppleShowAllFiles YES\nkillall -KILL Finder" >> ~/.bash_profile
alias hidefiles="\ndefaults write com.apple.finder AppleShowAllFiles NO\nkillall -KILL Finder" >> ~/.bash_profile
source ~/.bash_profile


wget https://s3.amazonaws.com/cerenity/SOResources/SourceCodePro-Regular.ttf -O /Library/Fonts/SourceCodePro-Regular.ttf 

echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>BackgroundBlur</key>
	<real>0.10000000000000001</real>
	<key>BackgroundColor</key>
	<data>
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
	AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECsw
	LjE3NTY3MDU4NyAwLjA0NjczMDk4MDcxIDAuMjgyMTQ4MjA5OCAwLjkAEAGAAtIQERIT
	WiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRB
	cmNoaXZlctEXGFRyb290gAEIERojLTI3O0FITltikJKUmaSttbjB09bbAAAAAAAAAQEA
	AAAAAAAAGQAAAAAAAAAAAAAAAAAAAN0=
	</data>
	<key>CursorColor</key>
	<data>
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
	AAGGoKMHCA9VJG51bGzTCQoLDA0OV05TV2hpdGVcTlNDb2xvclNwYWNlViRjbGFzc0sw
	LjMwMjQxOTM2ABADgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRY
	TlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSFBdZHBy
	dHmEjZWYobO2uwAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAAC9
	</data>
	<key>Font</key>
	<data>
	YnBsaXN0MDDUAQIDBAUGGBlYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
	AAGGoKQHCBESVSRudWxs1AkKCwwNDg8QVk5TU2l6ZVhOU2ZGbGFnc1ZOU05hbWVWJGNs
	YXNzI0AmAAAAAAAAEBCAAoADXxAVU291cmNlQ29kZVByby1SZWd1bGFy0hMUFRZaJGNs
	YXNzbmFtZVgkY2xhc3Nlc1ZOU0ZvbnSiFRdYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2
	ZXLRGhtUcm9vdIABCBEaIy0yNzxCS1JbYmlydHZ4kJWgqbCzvM7R1gAAAAAAAAEBAAAA
	AAAAABwAAAAAAAAAAAAAAAAAAADY
	</data>
	<key>FontAntialias</key>
	<true/>
	<key>FontWidthSpacing</key>
	<real>0.99596774193548387</real>
	<key>ProfileCurrentVersion</key>
	<real>2.04</real>
	<key>SelectionColor</key>
	<data>
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
	AAGGoKMHCA9VJG51bGzTCQoLDA0OV05TV2hpdGVcTlNDb2xvclNwYWNlViRjbGFzc0sw
	LjI1NDAzMjI1ABADgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRY
	TlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSFBdZHBy
	dHmEjZWYobO2uwAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAAC9
	</data>
	<key>ShowWindowSettingsNameInTitle</key>
	<false/>
	<key>TextBoldColor</key>
	<data>
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
	AAGGoKMHCA9VJG51bGzTCQoLDA0OV05TV2hpdGVcTlNDb2xvclNwYWNlViRjbGFzc0Ix
	ABADgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3Rf
	EA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSFBdZGdpa3B7hIyPmKqt
	sgAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAAC0
	</data>
	<key>TextColor</key>
	<data>
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
	AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECkw
	LjEyNTM4NTM2OTUgMC45NDc1ODA2MzU1IDAuMDAxNTM1MDc3MjUyABABgALSEBESE1ok
	Y2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJj
	aGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSE5bYo6Qkpeiq7O2v9HU2QAAAAAAAAEBAAAA
	AAAAABkAAAAAAAAAAAAAAAAAAADb
	</data>
	<key>name</key>
	<string>ProCode</string>
	<key>shellExitAction</key>
	<integer>2</integer>
	<key>type</key>
	<string>Window Settings</string>
</dict>
</plist>' > ProCode.terminal

defaults write com.apple.Terminal "Startup Window Settings" -string "ProCode"
defaults write com.apple.Terminal "Default Window Settings" -string "ProCode"

while true; do
	read -p "Have you installed apm the atom cli toolset? [y/n]" yn
	case $yn in
		[Yy]* ) echo "Awesome! Now we continue."; break;;
		[Nn]* ) echo "Why? Go do it now. Atom > Install Shell Commands"; atom .;;
		* ) echo "Please answer yes or no.";;
	esac
done

apm install activate-power-mode
apm install file-icons
apm install linter-jshint
apm install linter-eslint
apm install node-debugger
apm install script
apm install autocomplete-emojis
apm install atom-html-preview

brew cask install github
brew cask install webstorm
brew cask install sourcetree
brew cask install transmit

brew cleanup --force
rm -f -r /Library/Caches/Homebrew/*

defaults write com.apple.Finder FXPreferredViewStyle clmv
defaults write com.apple.menuextra.battery ShowPercent YES
defaults write com.apple.dock orientation left
defaults write com.apple.dock autohide -bool true
defaults write com.apple.dock magnification -bool true
defaults write com.apple.dock tilesize -int 20
defaults write com.apple.dock largesize -string "80.00"
defaults -currentHost write com.apple.screensaver moduleDict -dict moduleName -string "Flurry" path -string "/System/Library/Screen Savers/Flurry.saver" type -int 0
defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseTwoFingerHorizSwipeGesture -int 2
defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseOneFingerDoubleTapGesture -int 1
defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseButtonMode -string TwoButton
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false

function killallApps() {
	killall "Finder" > /dev/null 2>&1;
	killall "SystemUIServer" > /dev/null 2>&1;
	killall "Dock" > /dev/null 2>&1;
	appsToKill=(
		"Activity Monitor"
		"Calendar"
		"Contacts"
		"Dashboard"
		"Disk Utility"
		"Google Chrome"
		"Safari"
		"System Preferences"
		"Xcode"
		);
	for app in "${appsToKill[@]}"; do
		killall "${app}" > /dev/null 2>&1;
	done;
	echo "Note that some of these changes require a logout/restart to take effect.";
}

while true; do
	read -p "Restart the affected applications? [y/n]" yn
	case $yn in
		[Yy]* ) killallApps; break;;
		[Nn]* ) echo "You'll have to restart eventually."; break;;
		* ) echo "Please answer yes or no.";;
	esac
done
  1. Atom editor - set tab space to 4 - install packages from [HERE][1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment