如何从 0 开始配置 Mac
文章目录
安装 App
安装应用可以有如下途径
HomeBrew
安装 HomeBrew 并用他安装 App 和 Cli 工具。App 可以在 homebrew-cask — Homebrew Formulae 里找有没有,Cli 工具可以在 homebrew-core — Homebrew Formulae 找有没有。
-
安装 homebrew
1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
安装软件包:在终端中输入
brew install <package>
命令安装需要的软件包。例如,要安装 wget,可以输入brew install wget
,如果要安装的软件包已经安装过了,则会提示已经安装。 -
更新软件包:在终端中输入
brew update
命令更新 Homebrew 自己和软件包的信息,然后输入brew upgrade
命令更新已安装的软件包。 -
搜索软件包:在终端中输入
brew search <keyword>
命令搜索软件包。例如,要搜索 Python,可以输入brew search python
: -
卸载软件包:在终端中输入
brew uninstall <package>
命令卸载软件包。例如,要卸载 wget,可以输入brew uninstall wget
除了以上基本命令,Homebrew 还有很多其他功能和选项,可以在终端中输入
brew help
命令查看帮助文档。
Mac AppStore
其他
比如脚本。
当前我本地的应用可以分为如下几类:
- 浏览器:Google Chrome.app, Safari.app
- 云存储:Google Drive.app, OneDrive.app, BaiduNetdisk_mac.app,aDrive.app,海康私有网盘.app
- IM:QQ.app,WeChat.app
- 开发:Axure RP 10.app, Cubox.app, DataGrip.app, Docker.app, GoLand.app, PhpStorm.app, RedisInsight-v2.app, SSH Config Editor.app,Visual Studio Code.app, WebStorm.app, Xcode.app, iHosts.app, PyCharm.app,QuickRedis.app,Sublime
- 教育:Anki.app
- 娱乐:IINA.app, QQMusic.app
- 效率工具:Enpass.app, Manico.app, Paste.app, PasteNow.app, PicGo.app, PopClip.app, Postman.app,CheatSheet.app, QSpace.app, TickTick.app, Alfred 4.app, DaisyDisk.app, Gemini 2.app, HazeOver.app, Spectacle.app,iShort,Goal Map
- 笔记: Quiver.app, SnippetsLab.app, Typora.app, XMind.app,Keynote.app, Obsidian.app,wpsoffice.app,有道云笔记.app
- 系统设置:Flux.app, Logi Options.app, Noizio.app,Tunnelblick.app,Tencent Lemon.app
配置 App
终端和命令行 iterm2
oh-my-zsh
-
安装 zsh。https://ohmyz.sh/
-
starship (rust 写的 prompt 工具)
1 2
brew install starship echo 'eval "$(starship init zsh)"' >> ~/.zshrc
-
安装 zsh 的插件, zsh-autosuggestions、zsh-completions 和 fast-syntax-highlighting。
1 2 3
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting
SSH
|
|
Alfred
系统设置
键盘
-
系统键重复速率、重复前延迟调整到最快。
-
修饰键
- 大小切换 => Control
- Command =>Option(适配 win 键位键盘)
- Option => Command (适配 win 键位键盘)
参考文档
https://dev.to/andrewbaisden/how-i-setup-my-development-environment-on-macos-2022-edition-5elf
文章作者 Chen Guixian
上次更新 2023-07-21