Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mac installation
#!/bin/bash
# set firmware password
# sudo firmwarepasswd -setpasswd -setmode command
# Disable the Character Accent Menu and Enable Key Repeat
defaults write -g ApplePressAndHoldEnabled false
# Prevent generate .DS_Store
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
# Default the screen capture to be a jpg file to reduce the size
defaults write com.apple.screencapture type jpg
# Show absolute path in finder's title bar
defaults write com.apple.finder _FXShowPosixPathInTitle true
# show all files in finder
defaults write com.apple.finder AppleShowAllFiles true
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Configure Homebrew
brew doctor
# Setup Homebrew tap`
brew tap buo/cask-upgrade # upgrade cask by `brew cu`
brew tap cjbassi/gotop
brew tap homebrew/cask
brew tap homebrew/cask-fonts
brew tap neovim/neovim
brew tap sachaos/todoist
brew tap sashkab/python
brew tap wallix/awless
###########
# install #
###########
brew install awless
brew install awscli
brew install autojump
brew install asciinema
brew install bat
brew install brew-cask-completion
brew install curl
brew install diff-so-fancy
brew install dialog
brew install direnv
brew install dep # golang dependency management tool
brew install exa
brew install fzf
brew install gist
brew install git
brew install git-delta
brew install git-standup
brew install golang-migrate
brew install gotop
brew install graphviz
brew install guumaster/tap/hostctl
brew install hh
brew install httpie
brew install hub
brew install hyperfine # command benchmarking tool
brew install ispell
brew install jid
brew install jq
brew install knqyf263/pet/pet
brew install kubectl
brew install lua
brew install mackup # backup and restore your settings
brew install mas
brew install mitmproxy
brew install mysql
brew install neofetch
brew install neovim
brew install peco
brew install pyenv
brew install python
brew install python35
brew install redis
brew install reinstall-to-user-namespace
brew install ripgrep # should be able to replace the_silver_searcher
brew install safe-rm
brew install Schniz/tap/fnm
brew install starship
brew install tmux
brew install watchman
brew install wget
brew install wireguard-tools
brew install yarn
brew install zplug
brew install zsh
##############################
# replace macos with gnu cli #
##############################
brew install coreutils
brew install diffutils
brew install findutils
brew install gawk
brew install gnu-sed
brew install gnu-tar
brew install gnu-which
brew install grep
brew install less
################
# cask install #
################
brew install --cask alacritty
brew install --cask alfred
brew install --cask android-file-transfer
brew install --cask anki
brew install --cask authy
brew install --cask bettertouchtool
brew install --cask calibre
brew install --cask clipy
brew install --cask cyberduck
brew install --cask docker
brew install --cask dozer
brew install --cask evernote
brew install --cask feishu
brew install --cask firefox
brew install --cask gas-mask
brew install --cask gimp
brew install --cask google-backup-and-sync
brew install --cask google-chrome
brew install --cask google-cloud-sdk
brew install --cask graphql-playground
brew install --cask imageoptim
brew install --cask iina
brew install --cask insomnia
brew install --cask istat-menus
brew install --cask homebrew/cask-drivers/logitech-options
brew install --cask kitty
brew install --cask messenger
brew install --cask ngrok
brew install --cask nosqlbooster-for-mongodb
brew install --cask numi
brew install --cask postman
brew install --cask rectangle
brew install --cask sketch
brew install --cask stretchly
brew install --cask slack
brew install --cask sourcetree
brew install --cask spotify
brew install --cask the-unarchiver
brew install --cask tor-browser
brew install --cask tunnelblick
brew install --cask visual-studio-code
brew install --cask virtualbox
brew install --cask whatsapp
###################
# android install #
###################
# brew install --cask java
# brew install ant
# brew install maven
# brew install gradle
# brew install --cask android-ndk
# brew install --cask android-sdk
# brew install --cask android-studio
###################
# fonts install #
###################
# brew install --cask font-source-code-pro
brew install --cask font-hack
# brew install --cask font-meslo-for-powerline
brew install --cask font-meslo-nerd-font
brew install --cask font-meslo-nerd-font-mono
brew install --cask font-fira-code
###################
# Mac Store App #
###################
mas install 1063631769 # Medis
mas install 1055511498 # Day One (2.9.2)
mas install 1451685025 # WireGuard (0.0.20190207)
mas install 402592703 # Timt out
mas install 568494494 # Pocket
mas install 668208984 # GIPHY CAPTURE (4.1)
#################
# After install #
#################
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.cm commit
git config --global alias.st status
git config --global alias.unstage 'reset HEAD --'
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/psprint/zsh-navigation-tools/master/doc/install.sh)"
#################
# Tmux
#################
git clone https://github.com/jimeh/tmux-themepack.git ~/.tmux-themepack
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
#################
# Rust
#################
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install fd-find # A simple, fast and user-friendly alternative to 'find'
cargo install fre # frerency search
cargo install sd # sed alternative
#################
# Golang
#################
export GOPATH="${HOME}/go"
curl -sSL https://git.io/g-install | bash
#################
# prepare mackup
#################
cat >> ~/.mackup.cfg << EOF
[storage]
engine = google_drive
[applications_to_ignore]
vscode
bettertouchtool
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment