Last active 3 weeks ago

admin revised this gist 1 year ago. Go to revision

1 file changed, 1 insertion

mac-install.sh

@@ -23,6 +23,7 @@ xcode-select --install
23 23 blue "Installing brew"
24 24 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
25 25 brew update --auto-update
26 + brew analytics off
26 27
27 28 # git
28 29 blue "Installing git"

admin revised this gist 1 year ago. Go to revision

1 file changed, 3 deletions

mac-install.sh

@@ -252,6 +252,3 @@ exit
252 252 [server] https://github.com/lollipopkit/flutter_server_box
253 253 [network monitor] https://github.com/GyulyVGC/sniffnet
254 254
255 -
256 - ## disable
257 - settings -> keyboard shortuts -> services -> disable searching

admin revised this gist 1 year ago. Go to revision

1 file changed, 15 insertions, 7 deletions

mac-install.sh

@@ -33,12 +33,12 @@ gh auth login
33 33 blue "Installing zsh"
34 34 sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
35 35
36 - local ZSH_CUSTOM="~/.oh-my-zsh/custom/plugins"
37 - git clone --depth 1 -- https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
38 - git clone --depth 1 -- https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
39 - git clone --depth 1 -- https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM}/plugins/fast-syntax-highlighting
40 - git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete
41 - git clone --depth 1 -- https://github.com/Aloxaf/fzf-tab $ZSH_CUSTOM/plugins/fzf-tab
36 + local ZSH_CUSTOM="$HOME/.oh-my-zsh/custom/plugins"
37 + git clone --depth 1 -- https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/zsh-autosuggestions
38 + git clone --depth 1 -- https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/zsh-syntax-highlighting
39 + git clone --depth 1 -- https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM}/fast-syntax-highlighting
40 + git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/zsh-autocomplete
41 + git clone --depth 1 -- https://github.com/Aloxaf/fzf-tab $ZSH_CUSTOM/fzf-tab
42 42
43 43 ## brew
44 44 blue "Installing apps"
@@ -117,9 +117,17 @@ brew install --cask keycastr # keycast
117 117 brew install --cask vlc
118 118 # brew install --cask amethyst // tiling window
119 119
120 - echo Installing Caddy
121 120 # https://caddy.community/t/caddy-on-mac-os-as-homebrew-service-autostart-on-system-startup/16940/2
122 121 brew install caddy
122 +
123 + ## vim
124 + curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
125 + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #plugin
126 +
127 + # rust
128 + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
129 +
130 + ## services
123 131 brew services start caddy
124 132 # /usr/local/etc/Caddyfile
125 133

admin revised this gist 1 year ago. Go to revision

1 file changed, 249 insertions

mac-install.sh(file created)

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