Last active 3 weeks ago

Revision 55517fae1c4e3b09a3b23b0fbf73c49aa8b19ad0

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="$HOME/.oh-my-zsh/custom/plugins"
37git clone --depth 1 -- https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/zsh-autosuggestions
38git clone --depth 1 -- https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/zsh-syntax-highlighting
39git clone --depth 1 -- https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM}/fast-syntax-highlighting
40git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/zsh-autocomplete
41git clone --depth 1 -- https://github.com/Aloxaf/fzf-tab $ZSH_CUSTOM/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
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
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$(brew --prefix)/opt/fzf/install
176
177## dotfiles
178blue "Config dotfiles https://www.atlassian.com/git/tutorials/dotfiles"
179git init --bare $HOME/.cfg
180alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
181config config --local status.showUntrackedFiles no
182
183## vim
184curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
185 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #plugin
186
187
188# sudo part
189## Enable install from anywhere
190# https://www.reddit.com/r/MacOS/comments/pquuc4/comment/hdds9g0/
191# 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
192sudo spctl --master-disable
193
194sudo gem install cocoapods
195sudo gem install screengrab
196
197# exit
198green "Install successfully, enjoy this awsome machine ❤️"
199exit
200
201## addition
202[vscode xcode] https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line
203[storage] https://nektony.com/disk-expert
204[cliboard] flycut/cutbox
205[editor] textmate coteditor
206[vpn] warp 1.1.1.1
207[player] https://github.com/iina/iina/releases/tag/v1.3.0
208[extension] https://github.com/quoid/userscripts
209[wiget] https://github.com/leits/MeetingBar
210[ci] https://github.com/cirruslabs/tart
211[vm] https://github.com/utmapp/UTM
212[ipa] https://github.com/majd/ipatool
213[xcode] https://github.com/RobotsAndPencils/XcodesApp
214[emulator] https://github.com/PlayCover/PlayCover
215[annotate, cite, and share research] https://www.zotero.org/
216[terminal] https://iterm2.com/downloads.html
217[keyboard] https://github.com/pqrs-org/Karabiner-Elements
218[realm] https://studio-releases.realm.io/latest/download/mac-dmg https://github.com/dsmelov/simsim
219[sketch] https://github.com/duraki/SketchCrapp
220[record] https://github.com/onmyway133/GifCapture/releases/tag/1.1.0
221[note] https://github.com/glushchenko/fsnotes
222[convert video2gif] https://github.com/sindresorhus/Gifski
223[download manager] https://github.com/agalwood/Motrix/releases
224[wallpaper] https://github.com/rlxone/Equinox
225[php] https://github.com/nicoverbruggen/phpmon
226[firmware] https://github.com/ninxsoft/mist-cli
227[xcodeproject] https://github.com/yonaskolb/XcodeGen
228[calender] https://github.com/pakerwreah/Calendr
229[java] https://www.oracle.com/java/technologies/downloads/#jdk19-mac
230[automation] https://www.hammerspoon.org/go/
231[video] https://github.com/mltframework/shotcut/releases
232[xcode] https://github.com/Serchinastico/Kin
233[database] https://github.com/dbeaver/dbeaver/releases
234[default app] https://www.rubicode.com/Downloads/RCDefaultApp-2.1.X.dmg
235[wasm] https://github.com/WebAssembly/wabt/releases/w
236[launchctl] launchcontrol
237[file-explorer] https://github.com/sayanarijit/xplr/releases | https://github.com/ranger/ranger | https://github.com/kamiyaa/joshuto | nnn | https://github.com/sxyazi/yazi
238[file server] https://github.com/sigoden/dufs # webdav
239[localsend] https://localsend.org/#/download # file sharing, airdrop
240[teamview] https://github.com/rustdesk/rustdesk/releases # teamviewer alternative
241[sql] drawsql.app
242[disk] https://github.com/Byron/dua-cli?tab=readme-ov-file
243[monitor brightness] https://github.com/alin23/Lunar
244[export photo library ios] https://github.com/RhetTbull/osxphotos
245[music lyric] buzz
246[image compressor, blog] caesium image compressor
247[vpn] tunelblick
248[bloatware] uad-ng-macos
249[window manager] https://github.com/MrKai77/Loop/releases/
250[editor] https://zed.dev/download
251[software] https://github.com/objective-see/KnockKnock
252[server] https://github.com/lollipopkit/flutter_server_box
253[network monitor] https://github.com/GyulyVGC/sniffnet
254
255