sudo echo ## reboot your mac and press ⌘+R ## csrutil disable ## reboot ## colors red() { printf "\033[31m${1}\033[0m\n\n"; } green() { printf "\033[32m${1}\033[0m\n\n"; } blue() { printf "\033[38;5;27m${1}\033[0m\n" ; } purple() { printf "\033[35m${1}\033[0m\n\n"; } ## show hidden files defaults write com.apple.Finder AppleShowAllFiles true # xcode blue "Installing xcode" xcode-select --install # brew blue "Installing brew" bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew update --auto-update brew analytics off # git blue "Installing git" brew install gh gh auth login ## zsh bash -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)" ## brew blue "Installing apps" brew install git git-gui brew install mos ffmpeg brew install fastlane brew install stats brew install carthage brew install lima brew install swiftformat brew install robotsandpencils/made/xcodes brew install swiftlint brew install mos asciinema brew install imagemagick brew install aria2 brew install mackup # backup brew install jq brew install swiftlint brew install rsync brew tap majd/repo brew install ipatool brew install jadx brew install apktool brew install grep ## ggrep (gnu-unix) brew install ccat ## cat with format. brew install duti ## set default app. brew install ripgrep ## grep like, + recursive brew install ngrok/ngrok/ngrok brew install imagemagick brew install rclone brew install fd ## find alt brew install bat brew install tree brew install gitui brew install git-delta brew install neofetch brew install lolcat brew install lesspipe ## advance less brew install yt-dlp ## as youtube-dl weirdo brew install imagemagick brew install pngpaste brew install micro ## editor brew install vhs ## terminal recorder brew install rustfmt brew install jesseduffield/lazygit/lazygit brew install glances ## htop brew install mitmproxy brew install php brew install dua-cli brew install gitleaks brew install source-highlight brew install rbenv brew install jq brew install yq brew install scrcpy brew install git-lfs git lfs install git lfs install --system brew install --cask swiftformat-for-xcode brew install --cask maccy brew install --cask flameshot brew install --cask vlc brew install --cask localsend # brew install --cask ghostty # brew install --cask xcodes # brew install --cask devtoys # brew install --cask hiddenbar # brew install --cask swiftbar trex multi // create web application # brew install --cask rectangle # brew install --cask alt-tab # brew install --cask pusher # brew install --cask sequel-ace # brew install --cask keycastr # keycast # brew install --cask linearmouse # brew install --cask iconizer # brew install --cask kap # brew install --cask --no-quarantine middleclick # brew install --cask amethyst // tiling window # https://caddy.community/t/caddy-on-mac-os-as-homebrew-service-autostart-on-system-startup/16940/2 brew install caddy ## vim curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #plugin # rust curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ## services brew services start caddy # /usr/local/etc/Caddyfile curl -fsSL https://raw.githubusercontent.com/onmyway133/FinderGo/master/install.sh | sh ## font blue "Installing fonts" echo -e "\xee\x82\xa0" brew tap homebrew/cask-fonts brew install --cask font-fira-code brew install font-hack-nerd-font echo -e "\xee\x82\xa0" # cli curl -sL https://firebase.tools | bash curl -fsSL https://d2lang.com/install.sh | sh -s -- # d2 for diagrams, arrows.... sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install)" curl https://raw.githubusercontent.com/ax/apk.sh/main/apk.sh -o /usr/local/bin/apk.sh chmod +x /usr/local/bin/apk.sh # node brew install node brew install watchman brew install cocoapods npm install --global web-ext npm install --global git-format-staged npm install -g react-native-cli npm install -g yarn npm install -g eslint npm install -g terminalizer # disk-space-analyzer curl https://download.nektony.com/download/diskexpert/disk-space-analyzer.dmg -O open disk-space-analyzer.dmg > /dev/null 2&>1 & ## sublime text ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl ## fzf brew install fzf ## dotfiles blue "Config dotfiles https://www.atlassian.com/git/tutorials/dotfiles" git init --bare $HOME/.cfg alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' config config --local status.showUntrackedFiles no ## vim curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #plugin # sudo part ## Enable install from anywhere # https://www.reddit.com/r/MacOS/comments/pquuc4/comment/hdds9g0/ # 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 sudo spctl --master-disable sudo gem install cocoapods sudo gem install screengrab # exit green "Install successfully, enjoy this awsome machine ❤️" exit ## addition [vscode xcode] https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line [storage] https://nektony.com/disk-expert [cliboard] flycut/cutbox [editor] textmate coteditor [vpn] warp 1.1.1.1 [player] https://github.com/iina/iina/releases/tag/v1.3.0 [extension] https://github.com/quoid/userscripts [wiget] https://github.com/leits/MeetingBar [ci] https://github.com/cirruslabs/tart [vm] https://github.com/utmapp/UTM [ipa] https://github.com/majd/ipatool [xcode] https://github.com/RobotsAndPencils/XcodesApp [emulator] https://github.com/PlayCover/PlayCover [annotate, cite, and share research] https://www.zotero.org/ [terminal] https://iterm2.com/downloads.html [keyboard] https://github.com/pqrs-org/Karabiner-Elements [realm] https://studio-releases.realm.io/latest/download/mac-dmg https://github.com/dsmelov/simsim [sketch] https://github.com/duraki/SketchCrapp [record] https://github.com/onmyway133/GifCapture/releases/tag/1.1.0 [note] https://github.com/glushchenko/fsnotes [convert video2gif] https://github.com/sindresorhus/Gifski [download manager] https://github.com/agalwood/Motrix/releases [wallpaper] https://github.com/rlxone/Equinox [php] https://github.com/nicoverbruggen/phpmon [firmware] https://github.com/ninxsoft/mist-cli [xcodeproject] https://github.com/yonaskolb/XcodeGen [calender] https://github.com/pakerwreah/Calendr [java] https://www.oracle.com/java/technologies/downloads/#jdk19-mac [automation] https://www.hammerspoon.org/go/ [video] https://github.com/mltframework/shotcut/releases [xcode] https://github.com/Serchinastico/Kin [database] https://github.com/dbeaver/dbeaver/releases [default app] https://www.rubicode.com/Downloads/RCDefaultApp-2.1.X.dmg [wasm] https://github.com/WebAssembly/wabt/releases/w [launchctl] launchcontrol [file-explorer] https://github.com/sayanarijit/xplr/releases | https://github.com/ranger/ranger | https://github.com/kamiyaa/joshuto | nnn | https://github.com/sxyazi/yazi [file server] https://github.com/sigoden/dufs # webdav [localsend] https://localsend.org/#/download # file sharing, airdrop [teamview] https://github.com/rustdesk/rustdesk/releases # teamviewer alternative [sql] drawsql.app [disk] https://github.com/Byron/dua-cli?tab=readme-ov-file [monitor brightness] https://github.com/alin23/Lunar [export photo library ios] https://github.com/RhetTbull/osxphotos [music lyric] buzz [image compressor, blog] caesium image compressor [vpn] tunelblick [bloatware] uad-ng-macos [window manager] https://github.com/MrKai77/Loop/releases/ [editor] https://zed.dev/download [software] https://github.com/objective-see/KnockKnock [server] https://github.com/lollipopkit/flutter_server_box [network monitor] https://github.com/GyulyVGC/sniffnet [slideshow] https://github.com/gobbledegook/creevey [editor]https://github.com/sinelaw/fresh [window managers] https://www.raycast.com/ | https://github.com/nikitabobko/AeroSpace