1

我正在尝试运行命令

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?

4

1 回答 1

2

看起来 prezto 依赖于$BROWSER环境变量。尝试设置它:

export BROWSER=google-chrome-stable
于 2015-05-13T18:27:03.950 回答