Mac-开发者装机常见问题
必装软件:
谷歌浏览器: https://www.google.cn/intl/zh-CN/chrome/
搜狗输入法:https://shurufa.sogou.com/mac
聊天软件:微信 ...
IDE:
Vscode: https://code.visualstudio.com
Cursor: https://cursor.com/cn
终端:
Homebrew
安装需要FQ,或者使用如下脚本:
保存本地:https://raw.githubusercontent.com/Homebrew/install/master/install.sh
该文件路径下执行sh
chmod 755 install.sh
./script.sh
详解:https://cloud.tencent.com/developer/article/1622946
安装 fnm Node.js 版本管理工具
brew install fnm
配置环境 source ~/.bashrc
export PATH="$HOME/.fnm:$PATH"
eval "$(fnm env)"
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"
alias python=python3
Git 账号绑定
git config --global user.name "你的用户名"
git config --global user.email "你的邮箱地址"
git push origin xxx
Git 会提示你输入用户名和密码:
- 用户名:输入你的 GitHub 用户名。
- 密码:输入刚才生成的 Personal Access Token,而不是 GitHub 密码。
使用 git-credential-store 存储凭证
git config --global credential.helper store

浙公网安备 33010602011771号