Last active 3 weeks ago

Revision 1ee819d50f11d7e0c2df2b3170b001863827b3d4

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