-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_mac.sh
executable file
·82 lines (61 loc) · 2.61 KB
/
setup_mac.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
./setup_fonts.sh
sudo xcode-select --install &> /dev/null
until $(xcode-select --print-path &> /dev/null); do
sleep 5;
done
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
brew install gh
echo "Your GitHub emails:"
gh auth login -s user -s codespace
gh api --method GET /user/emails --jq ".[].email"
brew install zsh
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zshrc
sudo chsh -s /bin/zsh
brew install --cask visual-studio-code
brew install n
sudo n install latest
./install.sh
brew install --cask maccy
sleep 1
open -a Maccy
brew install --cask rectangle
# Copy Rectange profile
RECT_PATH="$HOME/Library/Application Support/Rectangle"
mkdir -p $RECT_PATH
cp ./configs/rectangle.json "$RECT_PATH/RectangleConfig.json"
sleep 1
open -a Rectangle
brew install --cask iterm2
# Copy iterm2 profiles and set default
ITERM_PATH="$HOME/Library/Application Support/iTerm2/DynamicProfiles"
mkdir -p $ITERM_PATH
cp ./configs/iterm2.json "$ITERM_PATH/profiles.json"
defaults write com.googlecode.iterm2 "Default Bookmark Guid" -string "00000000-0000-0000-0000-000000000001"
# A11y queens
brew install --cask keycastr colour-contrast-analyser pika
brew install --cask background-music # Background audio capture
# Alternative screen recorder - https://rewatch.com/screen-recorder/
brew install --cask postman
# Mac customization configs (https://macos-defaults.com/)
### Swap Option and Command keys - by Copilot ❤️
defaults write -g "com.apple.keyboard.modifiermapping.1452-610-0" -array "<dict><key>HIDKeyboardModifierMappingDst</key><integer>30064771113</integer><key>HIDKeyboardModifierMappingSrc</key><integer>30064771129</integer></dict>"
## Obliterate annoying space creator when dragging app to top of screen (not working 🤬)
# defaults write com.apple.dock mcx-expose-disabled -bool TRUE
# defaults write com.apple.dashboard mcx-disabled -bool TRUE
# killall Dock
## Remove recent apps from dock
defaults write com.apple.dock "show-recents" -bool false
## Disable natural scrolling for mouse
defaults write -g com.apple.swipescrolldirection -bool false
## Disable smooth scrolling
defaults write -g NSScrollAnimationEnabled -bool false
## Restart dock
killall Dock
# Other apps
brew install --cask microsoft-edge microsoft-teams
brew install --cask spotify discord
# Slack thread extension
gh extension install https://github.com/rneatherway/gh-slack