安装 App

安装应用可以有如下途径

HomeBrew

安装 HomeBrew 并用他安装 App 和 Cli 工具。App 可以在 homebrew-cask — Homebrew Formulae 里找有没有,Cli 工具可以在 homebrew-core — Homebrew Formulae 找有没有。

  1. 安装 homebrew

    1
    
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  2. 安装软件包:在终端中输入 brew install <package> 命令安装需要的软件包。例如,要安装 wget,可以输入 brew install wget,如果要安装的软件包已经安装过了,则会提示已经安装。

  3. 更新软件包:在终端中输入 brew update 命令更新 Homebrew 自己和软件包的信息,然后输入 brew upgrade 命令更新已安装的软件包。

  4. 搜索软件包:在终端中输入 brew search <keyword> 命令搜索软件包。例如,要搜索 Python,可以输入brew search python

  5. 卸载软件包:在终端中输入 brew uninstall <package> 命令卸载软件包。例如,要卸载 wget,可以输入 brew uninstall wget

    除了以上基本命令,Homebrew 还有很多其他功能和选项,可以在终端中输入 brew help 命令查看帮助文档。

Mac AppStore

其他

比如脚本。

当前我本地的应用可以分为如下几类:

  1. 浏览器:Google Chrome.app, Safari.app
  2. 云存储:Google Drive.app, OneDrive.app, BaiduNetdisk_mac.app,aDrive.app,海康私有网盘.app
  3. IM:QQ.app,WeChat.app
  4. 开发: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
  5. 教育:Anki.app
  6. 娱乐:IINA.app, QQMusic.app
  7. 效率工具: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
  8. 笔记: Quiver.app, SnippetsLab.app, Typora.app, XMind.app,Keynote.app, Obsidian.app,wpsoffice.app,有道云笔记.app
  9. 系统设置:Flux.app, Logi Options.app, Noizio.app,Tunnelblick.app,Tencent Lemon.app

配置 App

终端和命令行 iterm2

oh-my-zsh

  1. 安装 zsh。https://ohmyz.sh/

  2. starship (rust 写的 prompt 工具)

    1
    2
    
    brew install starship
    echo 'eval "$(starship init zsh)"' >> ~/.zshrc
    
  3. 安装 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Host xxx
	User root
	HostName xxxx
	Port 32200
	IdentityFile ~/.ssh/guixian_id_rsa
	#SCETerminal com.googlecode.iterm2
	#SCEGroup 0B389407-DE85-4CB6-868D-23F2466C4D7A

Host github.com
	User git
	HostName github.com
	Port 22
	IdentityFile ~/.ssh/xx_id_rsa

Host gitee.com
	User git
	HostName gitee.com
	Port 22
	IdentityFile ~/.ssh/xx_id_rsa

Host *
	User xx
	Port xx
	IdentityFile ~/.ssh/id_rsa
	HostKeyAlgorithms +ssh-rsa
	PubkeyAcceptedKeyTypes +ssh-rsa

Alfred

程序员的macOS系列:高效Alfred进阶

系统设置

键盘

  • 系统键重复速率、重复前延迟调整到最快。

  • 修饰键

    • 大小切换 => Control
    • Command =>Option(适配 win 键位键盘)
    • Option => Command (适配 win 键位键盘)

参考文档

如何从 0 开始配置 MacBook Pro

https://dev.to/andrewbaisden/how-i-setup-my-development-environment-on-macos-2022-edition-5elf

程序员的macOS系列:高效Alfred进阶