Last active
October 17, 2024 12:11
-
-
Save suica/16c37620f22878bf3e94be9a5148311f to your computer and use it in GitHub Desktop.
MacOS Development Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### generated by "brew bundle dump --describe" | |
tap "homebrew/bundle" | |
# Resource monitor. C++ version and continuation of bashtop and bpytop | |
brew "btop" | |
# 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 "[email protected]" | |
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 "[email protected]" | |
git config --global pull.rebase true | |
# oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# 去掉长按重音 | |
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false | |
# 雾凇拼音自动部署 | |
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