joephon / blog

极简博客
3 stars 2 forks source link

重装Mac系统后,简单配置开发环境 #17

Open wardenger opened 4 years ago

wardenger commented 4 years ago

XCode

可以从 App Store 安装,如果不是IOS开发者,可以直接安装 Xcode command line tools

xcode-select --install

安装HomeBrew

安装

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

添加环境变量

$ echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile

验证

brew doctor

Iterm2,zsh

插件:zsh-autosuggestions

git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

插件:zsh-syntax-highlighting

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

在 .zshrc 配置

plugins=(git colorize github jira vagrant virtualenv pip python brew osx zsh-syntax-highlighting zsh-autosuggestions)

命令行启动 vscode

command + shift + p

输入 > shell command

命令行启动 typora

将下面这行添加到 .bash_profile

alias t="open -a typora"

生成密钥对

ssh-keygen -t rsa -C "your email address"

git

brew install git
git --version
git config --global user.name "Your Name Here"
git config --global user.email "your_email@youremail.com"
joephon commented 4 years ago

nice