/ bin / ,provision-mac
,provision-mac
  1  #!/bin/sh
  2  
  3  # Mac provisioning script
  4  
  5  # UI
  6  defaults write .GlobalPreferences AppleAccentColor 1
  7  defaults write .GlobalPreferences AppleHighlightColor "1.000000 0.874510 0.701961 Orange"
  8  defaults write .GlobalPreferences AppleInterfaceStyle Dark
  9  defaults write .GlobalPreferences AppleEnableSwipeNavigateWithScrolls 0
 10  defaults write .GlobalPreferences AppleShowAllExtensions 1
 11  defaults write .GlobalPreferences AppleShowScrollBars Always
 12  defaults write .GlobalPreferences AppleWindowTabbingMode always
 13  defaults write .GlobalPreferences _HIHideMenuBar 1
 14  defaults write .GlobalPreferences NSQuitAlwaysKeepsWindows 1
 15  
 16  # Sound
 17  defaults write .GlobalPreferences com.apple.sound.beep.feedback 0
 18  defaults write .GlobalPreferences com.apple.sound.beep.flash 0
 19  
 20  # Keyboard
 21  defaults write .GlobalPreferences NSAutomaticDashSubstitutionEnabled 1
 22  defaults write .GlobalPreferences NSAutomaticPeriodSubstitutionEnabled 0
 23  defaults write .GlobalPreferences NSAutomaticQuoteSubstitutionEnabled 1
 24  defaults write .GlobalPreferences NSAutomaticSpellingCorrectionEnabled 1
 25  defaults write .GlobalPreferences NSAutomaticTextCompletionCollapsed 1
 26  defaults write .GlobalPreferences NSAutomaticTextCompletionEnabled 1
 27  defaults write .GlobalPreferences WebAutomaticSpellingCorrectionEnabled 1
 28  
 29  # Mouse
 30  defaults write .GlobalPreferences com.apple.mouse.scaling -1 # no mouse acceleration
 31  defaults write .GlobalPreferences com.apple.springing.enabled 1
 32  defaults write .GlobalPreferences com.apple.trackpad.forceClick 1
 33  
 34  # Finder
 35  defaults write com.apple.finder FXEnableExtensionChangeWarning 0
 36  defaults write com.apple.finder FXRemoveOldTrashItems 1
 37  defaults write com.apple.finder ShowRecentTags 0
 38  defaults write com.apple.finder NewWindowTarget "PfHm"
 39  defaults write com.apple.finder NewWindowTargetPath "file:///Users/glukki/"
 40  
 41  # Nix
 42  /bin/sh <(curl -L https://nixos.org/nix/install)
 43  
 44  # Homebrew
 45  /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
 46  
 47  # Shell
 48  brew install fish
 49  echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
 50  chsh -s /usr/local/bin/fish
 51  curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
 52  
 53  # Taps
 54  brew tap heroku/brew
 55  brew tap mongodb/brew
 56  
 57  # Shell apps
 58  brew install curl
 59  brew install direnv
 60  brew install dnsmasq
 61  brew install cloudflare/cloudflare/cloudflared
 62  brew install parallel
 63  brew install teleport
 64  brew install difftastic
 65  brew install duti
 66  brew install exercism
 67  brew install ffmpeg
 68  brew install gh
 69  brew install git
 70  brew install gnu-time
 71  brew install go
 72  brew install graphviz
 73  brew install hostess
 74  brew install htop
 75  brew install httrack
 76  brew install hub
 77  brew install jq
 78  brew install mas
 79  brew install micro
 80  brew install neovim
 81  brew install node
 82  brew install nvm
 83  brew install rclone
 84  brew install rtmpdump
 85  brew install rust
 86  brew install shellcheck
 87  brew install speedtest-cli
 88  brew install stow
 89  brew install tldr
 90  brew install watchman
 91  brew install wget
 92  brew install youtube-dl
 93  
 94  # Crates binary fetcher
 95  cargo install cargo-binstall
 96  
 97  # Crates
 98  cargo binstall fd-find
 99  cargo binstall flamegraph
100  cargo binstall ripgrep
101  cargo binstall solo2
102  cargo binstall --git https://github.com/astral-sh/uv uv
103  cargo binstall xh
104  cargo binstall zellij
105  
106  # Radicle
107  curl -sSf https://radicle.xyz/install | sh
108  
109  # UV tools
110  uv tool install --python 3.12 openhands-ai
111  
112  # Font
113  brew install font-hack
114  brew install font-hack-nerd-font
115  
116  # GUI apps
117  brew install alacritty
118  
119  brew cask install balenaetcher
120  brew cask install dash
121  brew cask install discord
122  brew cask install docker
123  brew cask install figma
124  brew cask install google-chrome
125  brew cask install hammerspoon
126  brew cask install imageoptim
127  brew cask install insomnia
128  brew cask install jetbrains-toolbox
129  brew cask install mpv
130  brew cask install resilio-sync
131  brew cask install slack
132  brew cask install spotify
133  brew cask install sublime-merge
134  brew cask install sublime-text
135  brew cask install telegram
136  brew cask install transmission
137  brew cask install virtualbox
138  brew cask install virtualbox-extension-pack
139  brew cask install visual-studio-code
140  brew cask install zoom
141  
142  # associate file extensions with mpv player
143  duti -s io.mpv avi viewer
144  duti -s io.mpv mkv viewer
145  duti -s io.mpv mp4 viewer
146  duti -s io.mpv m4v viewer
147  duti -s io.mpv webm viewer
148  duti -s com.sublimetext.4 txt editor
149  duti -s com.sublimetext.4 csv editor
150  
151  
152  # Mac App Store
153  mas install 723185815 & # iZip Viewer
154  mas install 409183694 & # Keynote
155  mas install 405399194 & # Kindle
156  mas install 533696630 & # Webcam Settings
157  mas install 1107421413 & # 1Blocker
158  mas install 858446756 & # World Clock Pro
159  mas install 1496833156 & # Playgrounds
160  mas install 407963104 & # Pixelmator
161  mas install 1153157709 & # Speedtest
162  mas install 409203825 & # Numbers
163  mas install 497799835 & # Xcode
164  mas install 1147396723 & # WhatsApp
165  mas install 409201541 & # Pages
166  mas install 1137020764 & # NotePlan 2
167  mas install 408981434 & # iMovie
168  mas install 1176895641 & # Spark
169  mas install 1081413713 & # GIF Brewery by Gfycat
170  mas install 566555032 & # SuperGenPass
171  mas install 470158793 & # Keka