Last active 3 weeks ago

Revision 73825b651dcdb16c0ab4252152839ad995c8f99f

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