Chapter 20

Mac Setup

开发环境

# nodejs mirror
npm config set registry https://registry.npmmirror.com
# GoLang
go env -w GOPROXY=https://goproxy.io,direct

应用

# 创建 Sublime Text 快捷命令
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

Safari

[设置]-【高级】-在菜单栏中显示“开发”菜单

iTerm2

iTerm2 - [Preferences] - [Profiles] - [Text] - 勾选“Use built-in Powerline glyphs”

vscode

install code CLI: Shift+Command+P - Shell Command:Insall 'code'

{
    "workbench.colorTheme": "Default Dark+",
    "workbench.sideBar.location": "right",
    "terminal.external.osxExec": "iTerm2.app",
    "terminal.integrated.fontFamily": "monospace"
}

refer https://stackoverflow.com/questions/62710890/font-issues-while-integrating-zsh-on-visual-studio-code

Chrome 访问自签名站点

输入以下命令,忽略证书检查

thisisunsafe

tools


brew install hugo

brew install tldr

macOS

# 修改hosts
sudo vi /private/etc/hosts

右键

  • 方式一: 按control + 鼠标点击
  • 方式二:【系统偏好设置】- 鼠标 - 勾选“辅助点按”

快捷键

  • 键盘操作Dock:fn + control + F3
  • Fn + < 或 > 跳转到页面顶端/末端
  • Command + Shift + R : 强制刷新 (Shift + 单击重新加载按钮)
  • Command + Shift + . : 显示隐藏文件夹

Finder/访达:

  • Command + Shift + G : Go to Folder
  • Command + Option + P : Show Path Bar
  • Command + Shift + . : 显示隐藏文件

扩展阅读