-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacos_install.sh
More file actions
executable file
·80 lines (68 loc) · 2.31 KB
/
macos_install.sh
File metadata and controls
executable file
·80 lines (68 loc) · 2.31 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/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 node
brew install fzf
brew install git-delta
brew install jj
brew install fd
brew install zoxide
brew install ripgrep
brew install pipx
brew install starship
brew install --cask macfuse
pip3 install --upgrade pip
pip3 install --user ipython
pip3 install --user numpy
pip3 install --user autopep8
pipx install ipython
# 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
# Copy fonts to the user fonts directory.
mkdir -p ~/Library/Fonts
cp -r fonts/* ~/Library/Fonts/
HOME_DIR=~
cat <<EOF >> ~/.profile
PATH="/usr/local/bin:\$PATH"
PATH="$HOME_DIR/bin:\$PATH"
PATH="$HOME_DIR/.local/bin:\$PATH"
PATH="/usr/local/opt/coreutils/libexec/gnubin:\$PATH"
PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:\$PATH"
EOF
sudo chsh "$(which zsh)" "$USER"