Zsh 如何让prezto使用默认浏览器打开github?

Zsh 如何让prezto使用默认浏览器打开github?,zsh,zshrc,prezto,Zsh,Zshrc,Prezto,我正在试着运行命令 git-hub-browse 但我一直在犯错误 browser not set or set to a non-existent browser. 当我检查默认浏览器时: sudo update-alternatives --config x-www-browser 我明白了: Selection Path Priority Status ----------------------------------

我正在试着运行命令

git-hub-browse
但我一直在犯错误

browser not set or set to a non-existent browser.
当我检查默认浏览器时:

 sudo update-alternatives --config x-www-browser
我明白了:

Selection    Path                           Priority   Status
------------------------------------------------------------
* 0            /usr/bin/google-chrome-stable   200       auto mode
  1            /usr/bin/firefox                40        manual mode
  2            /usr/bin/google-chrome-stable   200       manual mode

如何让prezto使用默认浏览器打开github?

prezto似乎依赖于
$browser
环境变量。尝试设置它:

export BROWSER=google-chrome-stable

成功了-谢谢!该文件保存在哪个文件中?它将在您关闭终端后消失。您可以将该行放入
~/.profile
~/.zshrc
~/.zprofile
以使其永久化。