Last active 3 weeks ago

Revision c86af537312f48ccb1332fc4624b4c2fa00d6cb3

mac-install.sh Raw
1sudo echo
2
3## reboot your mac and press ⌘+R
4## csrutil disable
5## reboot
6
7
8## colors
9red() { printf "\033[31m${1}\033[0m\n\n"; }
10green() { printf "\033[32m${1}\033[0m\n\n"; }
11blue() { printf "\033[38;5;27m${1}\033[0m\n" ; }
12purple() { printf "\033[35m${1}\033[0m\n\n"; }
13
14
15## show hidden files
16defaults write com.apple.Finder AppleShowAllFiles true
17
18# xcode
19blue "Installing xcode"
20xcode-select --install
21
22# brew
23blue "Installing brew"
24bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
25brew update --auto-update
26brew analytics off
27
28# git
29blue "Installing git"
30brew install gh
31gh auth login
32
33## zsh
34blue "Installing zsh"
35sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
36
37local ZSH_CUSTOM="$HOME/.oh-my-zsh/custom/plugins"
38git clone --depth 1 -- https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/zsh-autosuggestions
39git clone --depth 1 -- https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/zsh-syntax-highlighting
40git clone --depth 1 -- https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM}/fast-syntax-highlighting
41git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/zsh-autocomplete
42git clone --depth 1 -- https://github.com/Aloxaf/fzf-tab $ZSH_CUSTOM/fzf-tab
43
44## brew
45blue "Installing apps"
46brew install git git-gui
47brew install mos ffmpeg
48brew install fastlane
49brew install stats
50brew install carthage
51brew install lima
52brew install swiftformat
53brew install robotsandpencils/made/xcodes
54brew install swiftlint
55brew install mos asciinema
56brew install imagemagick
57brew install aria2
58brew install mackup # backup
59brew install jq
60brew install swiftlint
61brew install rsync
62brew tap majd/repo
63brew install ipatool
64brew install jadx
65brew install apktool
66brew install grep ## ggrep (gnu-unix)
67brew install ccat ## cat with format.
68brew install duti ## set default app.
69brew install ripgrep ## grep like, + recursive
70brew install ngrok/ngrok/ngrok
71brew install imagemagick
72brew install rclone
73brew install fd ## find alt
74brew install bat
75brew install tree
76brew install gitui
77brew install git-delta
78brew install neofetch
79brew install lolcat
80brew install lesspipe ## advance less
81brew install yt-dlp ## as youtube-dl weirdo
82brew install imagemagick
83brew install pngpaste
84brew install micro ## editor
85brew install vhs ## terminal recorder
86brew install rustfmt
87brew install jesseduffield/lazygit/lazygit
88brew install glances ## htop
89brew install mitmproxy
90brew install php
91brew install dua-cli
92brew install gitleaks
93brew install source-highlight
94brew install rbenv
95brew install jq
96brew install yq
97brew install scrcpy
98
99brew install git-lfs
100git lfs install
101git lfs install --system
102
103brew install --cask swiftformat-for-xcode
104brew install --cask maccy
105brew install --cask xcodes
106brew install --cask flameshot
107brew install --cask vlc
108brew install --cask localsend
109
110# brew install --cask devtoys
111# brew install --cask hiddenbar
112# brew install --cask swiftbar trex multi // create web application
113# brew install --cask rectangle
114# brew install --cask alt-tab
115# brew install --cask pusher
116# brew install --cask sequel-ace
117# brew install --cask keycastr # keycast
118# brew install --cask linearmouse
119# brew install --cask iconizer
120# brew install --cask kap
121# brew install --cask --no-quarantine middleclick
122# brew install --cask amethyst // tiling window
123
124# https://caddy.community/t/caddy-on-mac-os-as-homebrew-service-autostart-on-system-startup/16940/2
125brew install caddy
126
127## vim
128curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
129 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #plugin
130
131# rust
132curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
133
134## services
135brew services start caddy
136# /usr/local/etc/Caddyfile
137
138curl -fsSL https://raw.githubusercontent.com/onmyway133/FinderGo/master/install.sh | sh
139
140## font
141blue "Installing fonts"
142echo -e "\xee\x82\xa0"
143brew tap homebrew/cask-fonts
144brew install --cask font-fira-code
145brew install font-hack-nerd-font
146echo -e "\xee\x82\xa0"
147
148# cli
149curl -sL https://firebase.tools | bash
150curl -fsSL https://d2lang.com/install.sh | sh -s -- # d2 for diagrams, arrows....
151sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install)"
152
153curl https://raw.githubusercontent.com/ax/apk.sh/main/apk.sh -o /usr/local/bin/apk.sh
154chmod +x /usr/local/bin/apk.sh
155
156# node
157brew install node
158brew install watchman
159brew install cocoapods
160
161npm install --global web-ext
162npm install --global git-format-staged
163npm install -g react-native-cli
164npm install -g yarn
165npm install -g eslint
166npm install -g terminalizer
167
168
169# disk-space-analyzer
170curl https://download.nektony.com/download/diskexpert/disk-space-analyzer.dmg -O
171open disk-space-analyzer.dmg
172
173## sublime text
174
175ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
176
177## fzf
178brew install fzf
179$(brew --prefix)/opt/fzf/install
180
181## dotfiles
182blue "Config dotfiles https://www.atlassian.com/git/tutorials/dotfiles"
183git init --bare $HOME/.cfg
184alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
185config config --local status.showUntrackedFiles no
186
187## vim
188curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
189 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #plugin
190
191
192# sudo part
193## Enable install from anywhere
194# https://www.reddit.com/r/MacOS/comments/pquuc4/comment/hdds9g0/
195# https://maclife.io/huong-dan-tat-gatekeeper-bat-tuy-chon-anywhere-tren-macos-sierra-10-12-de-cai-ung-dung-ben-ngoai-app-store.html
196sudo spctl --master-disable
197
198sudo gem install cocoapods
199sudo gem install screengrab
200
201# exit
202green "Install successfully, enjoy this awsome machine ❤️"
203exit
204
205## addition
206[vscode xcode] https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line
207[storage] https://nektony.com/disk-expert
208[cliboard] flycut/cutbox
209[editor] textmate coteditor
210[vpn] warp 1.1.1.1
211[player] https://github.com/iina/iina/releases/tag/v1.3.0
212[extension] https://github.com/quoid/userscripts
213[wiget] https://github.com/leits/MeetingBar
214[ci] https://github.com/cirruslabs/tart
215[vm] https://github.com/utmapp/UTM
216[ipa] https://github.com/majd/ipatool
217[xcode] https://github.com/RobotsAndPencils/XcodesApp
218[emulator] https://github.com/PlayCover/PlayCover
219[annotate, cite, and share research] https://www.zotero.org/
220[terminal] https://iterm2.com/downloads.html
221[keyboard] https://github.com/pqrs-org/Karabiner-Elements
222[realm] https://studio-releases.realm.io/latest/download/mac-dmg https://github.com/dsmelov/simsim
223[sketch] https://github.com/duraki/SketchCrapp
224[record] https://github.com/onmyway133/GifCapture/releases/tag/1.1.0
225[note] https://github.com/glushchenko/fsnotes
226[convert video2gif] https://github.com/sindresorhus/Gifski
227[download manager] https://github.com/agalwood/Motrix/releases
228[wallpaper] https://github.com/rlxone/Equinox
229[php] https://github.com/nicoverbruggen/phpmon
230[firmware] https://github.com/ninxsoft/mist-cli
231[xcodeproject] https://github.com/yonaskolb/XcodeGen
232[calender] https://github.com/pakerwreah/Calendr
233[java] https://www.oracle.com/java/technologies/downloads/#jdk19-mac
234[automation] https://www.hammerspoon.org/go/
235[video] https://github.com/mltframework/shotcut/releases
236[xcode] https://github.com/Serchinastico/Kin
237[database] https://github.com/dbeaver/dbeaver/releases
238[default app] https://www.rubicode.com/Downloads/RCDefaultApp-2.1.X.dmg
239[wasm] https://github.com/WebAssembly/wabt/releases/w
240[launchctl] launchcontrol
241[file-explorer] https://github.com/sayanarijit/xplr/releases | https://github.com/ranger/ranger | https://github.com/kamiyaa/joshuto | nnn | https://github.com/sxyazi/yazi
242[file server] https://github.com/sigoden/dufs # webdav
243[localsend] https://localsend.org/#/download # file sharing, airdrop
244[teamview] https://github.com/rustdesk/rustdesk/releases # teamviewer alternative
245[sql] drawsql.app
246[disk] https://github.com/Byron/dua-cli?tab=readme-ov-file
247[monitor brightness] https://github.com/alin23/Lunar
248[export photo library ios] https://github.com/RhetTbull/osxphotos
249[music lyric] buzz
250[image compressor, blog] caesium image compressor
251[vpn] tunelblick
252[bloatware] uad-ng-macos
253[window manager] https://github.com/MrKai77/Loop/releases/
254[editor] https://zed.dev/download
255[software] https://github.com/objective-see/KnockKnock
256[server] https://github.com/lollipopkit/flutter_server_box
257[network monitor] https://github.com/GyulyVGC/sniffnet
258[slideshow] https://github.com/gobbledegook/creevey
259