M1 Monterer安装arcanist

636 阅读1分钟

下载arcanist

$ cd ~
$ mkdir arc/
$ cd arc/
$ git clone https://github.com/phacility/arcanist.git

安装PHP

arch -arm64 brew install php@8.1
brew link php@8.1

注意:非M1芯片,直接brew install php@8.1 即可

配置PHP环境,如果用的bash,配置在.bash_profile,用的zsh配置在.zshrc

export PATH="$PATH:$HOME/arc/arcanist/bin/"
export PATH="/opt/homebrew/opt/php@7.4/bin:$PATH"
export PATH="/opt/homebrew/opt/php@7.4/sbin:$PATH"

alias arcd='arc diff'
alias arcf='arc feature'

设置arc编辑器

arc set-config editor "vim"