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IQ/c4yR8IQvMLfC0WKQqrHu5ZzXTH4NO3CwGWSlTY74kE91zXB5mwWAx1jig+UXYc2w4RkVhy0//lOmVya/PEepuuTTI4+UJwC7qbVlh5zfhj8oTNUXgN0AOc+Q0/WFPl1aw5VV/VrO8FCoB15lFVlpKaQ1Yh+DVU8ke+rt9Th0BCHXe0uZOEmH0nOnH/0onD

如何安装已损坏的软件

https://zhuanlan.zhihu.com/p/135948430

2023/10/25

录制 Gif:Gifox

强烈推荐,录制的贼清晰!

2023/08/27

使用 Alt + Tab 切换应用:AltTab

AltTab

实用工具网站推荐

2023/08/21

任务栏养小猫:Run Cat

屏幕保护:Brooklyn

苹果的各种 LOGO 动画

格式化磁盘:DiskGenius

2023/08/18

Mac 使用手册

安装 brew

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

终端配置

NodeJS

  • 安装

    brew install node
  • 安装版本切换工具 n

    • 安装

      npm i n -g
    • 使用

      • 安装指定版本,版本号不带 v 前缀

        n [版本号]

        如果安装报错没权限,使用 sudo 命令

        sudo n [版本号]

        如果安装版本超时,使用阿里镜像(贼快~)

        sudo NODE_MIRROR=http://npm.taobao.org/mirrors/node n [版本号]
      • 切换版本

        n

        然后出现一个界面,按照提示操作即可

Git

  • 安装

    brew install git
  • 打开 .gitconfig 文件

    open ~/.gitconfig
  • 全局忽略 .DS_Store

    新建全局忽略配置文件 .gitignore_global

    touch ~/.gitignore_global

    写入内容

    .DS_Store
    **/.DS_Store
    .DS_Store?

    全局配置

    git config --global core.excludesfile ~/.gitignore_global

    删除仓库已有的 .DS_Store 文件

    find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
  • 显示隐藏文件快捷键:⌘ + Shift + .

  • 生成 SSH

    • 打开终端执行下方命令:

      ssh-keygen -t rsa -C "xxx@qq.com"

      紧接着会出现提示,默认创建在 /Users/xxx/.ssh/id_rsa 路径下,然后输入两次密码

      Generating public/private rsa key pair.
      Enter file in which to save the key (/Users/xxx/.ssh/id_rsa):
      Created directory '/Users/xxx/.ssh'.
      Enter passphrase (empty for no passphrase):
      Enter same passphrase again:
    • 打开 .ssh/id_rsa.pub 文件

      cat .ssh/id_rsa.pub

      复制内容,然后再在 GitHub -> Settings -> SSH and GPG keys 里新建 SSH key

    • 验证

      ssh -T git@github.com

      出现下面的内容,则表示连接成功。

      Hi xxx! You've successfully authenticated, but GitHub does not provide shell access.