美文网首页
macOS 程序猿初始化配置

macOS 程序猿初始化配置

作者: 文詣 | 来源:发表于2020-10-20 13:34 被阅读0次

    安装 macOS 命令行工具

    xcode-select --install
    

    安装 Homebrew 和 Homebrew Cask

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    brew update
    brew cask
    

    Homebrew 下载加速

    替换 brew.git

    cd "$(brew --repo)"
    git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
    

    替换 homebrew-core.git

    cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
    git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
    

    配置 Homebrew Bottles 镜像

    bash

    echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
    
    source ~/.bash_profile
    

    zsh

    echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
    
    source ~/.zshrc
    

    brew 安装常用工具

    工具 命令 描述
    bash-completion brew install bash-completion bash 补全
    git brew install git 版本管理工具
    go brew install go Go
    graphviz brew install graphviz 拓扑图绘制工具
    lua brew install lua Lua
    LuaRocks brew install luarocks Package manager for Lua modules
    mysql brew install mysql MySQL
    node brew install node Node.js
    nginx brew install nginx Nginx
    nmap brew install nmap 网络扫描工具
    navi brew install denisidoro/tools/navi 交互式命令行备忘录
    python brew install python Python
    redis brew install redis Redis
    shellcheck brew install shellcheck shell 脚本检查工具
    eslint npm i -g eslint ESLint
    luacheck luarocks install luacheck A tool for linting and static analysis of Lua code
    nrm npm i -g nrm NPM registry manager
    typescript npm i typescript TypeScript

    brew cask 安装常用工具

    工具 命令 描述
    CheatSheet brew cask install cheatsheet 快捷键提醒工具
    dash brew cask install dash 文档工具
    ezip brew cask install ezip 查看、编辑压缩包,无需解压
    firefox brew cask install firefox 终端工具
    flux brew cask install flux 保护下眼睛
    foxmail brew cask install foxmail 快速的邮件客户端
    google-chrome brew cask install google-chrome Chrome
    iina brew cask install iina modern media player for macOS
    iterm2 brew cask install iterm2 终端工具
    java brew cask install java open jdk java
    motrix brew cask install motrix 下载工具
    mounty brew cask install mounty 支持 NTFS 存储读写
    picgo brew cask install picgo 支持常用 cdn 的图床工具
    Postman brew cask install postman Postman
    Robo 3T brew cask install robo-3t MongoDB 可视化工具
    Sequel Pro brew cask install sequel-pro 好用的 MySQL 管理工具
    Sourcetree brew cask install sourcetree 强大的 Git 跨平台客户端
    SwitchHosts brew cask install switchhosts Switch hosts quickly!
    Termius brew cask install termius 挺好看一终端工具
    Typora brew cask install typora Markdown 工具
    VS Code brew cask install visual-studio-code Visual Studio Code

    Reference

    mac-dev-setup

    open-source-mac-os-apps

    替换及重置 Homebrew 默认源

    相关文章

      网友评论

          本文标题:macOS 程序猿初始化配置

          本文链接:https://www.haomeiwen.com/subject/etkdmktx.html