-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacos_install.sh
executable file
·62 lines (53 loc) · 1.99 KB
/
macos_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh
# These are commands to help setup a new install on macos.
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh
brew install tmux
brew install coreutils
brew install git-filter-repo
brew install watch
brew install imagemagick
brew install jekyll
brew install sqlite
brew install nasm
brew install gdb
brew install rename
brew install telnet
brew install jq
brew install --cask macfuse
pip3 install --upgrade pip
pip3 install --user ipython
pip3 install --user numpy
pip3 install --user autopep8
# Make dock appear instantly.
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 -int 0
# Show hidden apps as transparent.
defaults write com.apple.Dock showhidden -bool TRUE
# Don't reorder spaces.
defaults write com.apple.Dock mru-spaces -bool FALSE
# Place dock on the right.
defaults write com.apple.Dock orientation right
# Dock magnification.
defaults write com.apple.Dock largesize -float 56
defaults write com.apple.Dock magnification -float 1
defaults write com.apple.Dock mineffect scale
# Restart dock to apply changes.
killall Dock
# Show hidden files in Finder
defaults write com.apple.Finder AppleShowAllFiles -bool TRUE
killall Finder
# Turn off 2-finger swipe/scroll as it's really annoying.
defaults write "Apple Global Domain" AppleEnableSwipeNavigateWithScrolls -bool false
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerHorizSwipeGesture -int 2
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture -int 2
# Don't write DS_Store files to network shares.
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
ssh-add -K ~/.ssh/id_rsa
HOME_DIR=~
cat <<EOF >> ~/.profile
PATH="$HOME_DIR/bin:/usr/local/bin:\$PATH"
PATH="/usr/local/opt/coreutils/libexec/gnubin:\$PATH"
PATH="$HOME_DIR/Library/Python/3.7/bin:\$PATH"
PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:\$PATH"
EOF