Last active 3 weeks ago

Revision 23ba79822292351a8ffcd2a05c7d34c8372a628f

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
101
102# brew install --cask ghostty
103# brew install --cask xcodes
104# brew install --cask devtoys
105# brew install --cask hiddenbar
106# brew install --cask swiftbar trex multi // create web application
107# brew install --cask rectangle
108# brew install --cask alt-tab
109# brew install --cask pusher
110# brew install --cask sequel-ace
111# brew install --cask keycastr # keycast
112# brew install --cask linearmouse
113# brew install --cask iconizer
114# brew install --cask kap
115# brew install --cask --no-quarantine middleclick
116# brew install --cask amethyst // tiling window
117
118# https://caddy.community/t/caddy-on-mac-os-as-homebrew-service-autostart-on-system-startup/16940/2
119brew install caddy
120
121## vim
122curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
123 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #plugin
124
125# rust
126curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
127
128## services
129brew services start caddy
130# /usr/local/etc/Caddyfile
131
132curl -fsSL https://raw.githubusercontent.com/onmyway133/FinderGo/master/install.sh | sh
133
134## font
135blue "Installing fonts"
136echo -e "\xee\x82\xa0"
137brew tap homebrew/cask-fonts
138brew install --cask font-fira-code
139brew install font-hack-nerd-font
140echo -e "\xee\x82\xa0"
141
142# cli
143curl -sL https://firebase.tools | bash
144curl -fsSL https://d2lang.com/install.sh | sh -s -- # d2 for diagrams, arrows....
145sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install)"
146
147curl https://raw.githubusercontent.com/ax/apk.sh/main/apk.sh -o /usr/local/bin/apk.sh
148chmod +x /usr/local/bin/apk.sh
149
150# node
151brew install node
152brew install watchman
153brew install cocoapods
154
155npm install --global web-ext
156npm install --global git-format-staged
157npm install -g react-native-cli
158npm install -g yarn
159npm install -g eslint
160npm install -g terminalizer
161
162
163# disk-space-analyzer
164curl https://download.nektony.com/download/diskexpert/disk-space-analyzer.dmg -O
165open disk-space-analyzer.dmg > /dev/null 2&>1 &
166
167## sublime text
168
169ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
170
171## fzf
172brew install fzf
173
174## dotfiles
175blue "Config dotfiles https://www.atlassian.com/git/tutorials/dotfiles"
176git init --bare $HOME/.cfg
177alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
178config config --local status.showUntrackedFiles no
179
180## vim
181curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
182 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #plugin
183
184
185# sudo part
186## Enable install from anywhere
187# https://www.reddit.com/r/MacOS/comments/pquuc4/comment/hdds9g0/
188# 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
189sudo spctl --master-disable
190
191sudo gem install cocoapods
192sudo gem install screengrab
193
194# exit
195green "Install successfully, enjoy this awsome machine ❤️"
196exit
197
198## addition
199[vscode xcode] https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line
200[storage] https://nektony.com/disk-expert
201[cliboard] flycut/cutbox
202[editor] textmate coteditor
203[vpn] warp 1.1.1.1
204[player] https://github.com/iina/iina/releases/tag/v1.3.0
205[extension] https://github.com/quoid/userscripts
206[wiget] https://github.com/leits/MeetingBar
207[ci] https://github.com/cirruslabs/tart
208[vm] https://github.com/utmapp/UTM
209[ipa] https://github.com/majd/ipatool
210[xcode] https://github.com/RobotsAndPencils/XcodesApp
211[emulator] https://github.com/PlayCover/PlayCover
212[annotate, cite, and share research] https://www.zotero.org/
213[terminal] https://iterm2.com/downloads.html
214[keyboard] https://github.com/pqrs-org/Karabiner-Elements
215[realm] https://studio-releases.realm.io/latest/download/mac-dmg https://github.com/dsmelov/simsim
216[sketch] https://github.com/duraki/SketchCrapp
217[record] https://github.com/onmyway133/GifCapture/releases/tag/1.1.0
218[note] https://github.com/glushchenko/fsnotes
219[convert video2gif] https://github.com/sindresorhus/Gifski
220[download manager] https://github.com/agalwood/Motrix/releases
221[wallpaper] https://github.com/rlxone/Equinox
222[php] https://github.com/nicoverbruggen/phpmon
223[firmware] https://github.com/ninxsoft/mist-cli
224[xcodeproject] https://github.com/yonaskolb/XcodeGen
225[calender] https://github.com/pakerwreah/Calendr
226[java] https://www.oracle.com/java/technologies/downloads/#jdk19-mac
227[automation] https://www.hammerspoon.org/go/
228[video] https://github.com/mltframework/shotcut/releases
229[xcode] https://github.com/Serchinastico/Kin
230[database] https://github.com/dbeaver/dbeaver/releases
231[default app] https://www.rubicode.com/Downloads/RCDefaultApp-2.1.X.dmg
232[wasm] https://github.com/WebAssembly/wabt/releases/w
233[launchctl] launchcontrol
234[file-explorer] https://github.com/sayanarijit/xplr/releases | https://github.com/ranger/ranger | https://github.com/kamiyaa/joshuto | nnn | https://github.com/sxyazi/yazi
235[file server] https://github.com/sigoden/dufs # webdav
236[localsend] https://localsend.org/#/download # file sharing, airdrop
237[teamview] https://github.com/rustdesk/rustdesk/releases # teamviewer alternative
238[sql] drawsql.app
239[disk] https://github.com/Byron/dua-cli?tab=readme-ov-file
240[monitor brightness] https://github.com/alin23/Lunar
241[export photo library ios] https://github.com/RhetTbull/osxphotos
242[music lyric] buzz
243[image compressor, blog] caesium image compressor
244[vpn] tunelblick
245[bloatware] uad-ng-macos
246[window manager] https://github.com/MrKai77/Loop/releases/
247[editor] https://zed.dev/download
248[software] https://github.com/objective-see/KnockKnock
249[server] https://github.com/lollipopkit/flutter_server_box
250[network monitor] https://github.com/GyulyVGC/sniffnet
251[slideshow] https://github.com/gobbledegook/creevey
252[editor]https://github.com/sinelaw/fresh
253[window managers] https://www.raycast.com/ | https://github.com/nikitabobko/AeroSpace