Skip to content

Instantly share code, notes, and snippets.

@suica
Last active January 16, 2024 08:48
Show Gist options
  • Save suica/16c37620f22878bf3e94be9a5148311f to your computer and use it in GitHub Desktop.
Save suica/16c37620f22878bf3e94be9a5148311f to your computer and use it in GitHub Desktop.
MacOS Development Setup
### generated by "brew bundle dump --describe"
tap "homebrew/bundle"
# Resource monitor. C++ version and continuation of bashtop and bpytop
brew "btop"
# Manage your dotfiles across multiple diverse machines, securely
brew "chezmoi"
# Diff that understands syntax
brew "difftastic"
# Modern replacement for 'ls'
brew "eza"
# Command-line fuzzy finder written in Go
brew "fzf"
# Syntax-highlighting pager for git and diff output
brew "git-delta"
# Git extension for versioning large files
brew "git-lfs"
# Interpreted, interactive, object-oriented programming language
brew "python@3.11"
# Simple terminal UI for git commands
brew "lazygit"
# Mac App Store command-line interface
brew "mas"
# Ambitious Vim-fork focused on extensibility and agility
brew "neovim"
# User interface to the TELNET protocol
brew "telnet"
# CLI tool that moves files or folder to the trash
brew "trash"
# Display directories as trees (with optional color/HTML output)
brew "tree"
# Internet file retriever
brew "wget"
#
brew "fnm"
#
cask "orbstack"
# GUI for streamlined Redis application development
cask "redisinsight"
#
cask "karabiner-elements"
cask "raycast"
cask "warp"
cask "arc"
cask "visual-studio-code"
cask "the-unarchiver"
cask "amethyst"
cask "wechat"
cask "mos"
mas "RunCat", id: 1429033973
mas "Xcode", id: 497799835
# install brew
if [[ ! -e /opt/homebrew/bin/brew ]]; then
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"
export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api"
/bin/bash -c "$(curl -fsSL https://mirrors.ustc.edu.cn/misc/brew-install.sh)"
else
echo "You have installed brew"
fi
# install Brewfile
brew bundle
# generate ssh key
if [[ ! -e ~/.ssh/id_rsa.pub ]]; then
ssh-keygen
fi
# lazyvim
if [[ ! ~/.config/nvim ]]; then
git clone https://github.com/LazyVim/starter ~/.config/nvim
fi
# git config
git config --global user.name "Sg"
git config --global user.email "suica@users.noreply.github.com"
git config --global pull.rebase true
# oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# 雾凇拼音自动部署
mkdir ~/apps
cd ~/apps
git clone --depth=1 https://github.com/Mark24Code/rime-auto-deploy.git --branch latest
cd rime-auto-deploy
./installer.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment