Last active 3 weeks ago

Revision b892b31fc4d51185485fdf9ab4b1d1d7af927af1

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