You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noted that rustup doc has an hardcoded list of commands to fire up a browser, but I discovered from the webbrowser.py sources that the user can set the BROWSER environment variable to override the command.
I find this very useful, because I usually have more than one open browser and sometime I prefer to open the documentation in a browser that is not the system default one.
I have a mostly working patch for this issue but my rust-foo is poor (very poor when strings come in) and the code is not something I'm very proud of.
If the feature is something someone else is interested in, I can open a PR for further review.
The text was updated successfully, but these errors were encountered:
If the BROWSER enviroment variable is found, it is used as a list of
commands to be tested before the hardcoded ones to launch a browser.
Issue rust-lang#1287
I noted that
rustup doc
has an hardcoded list of commands to fire up a browser, but I discovered from thewebbrowser.py
sources that the user can set theBROWSER
environment variable to override the command.I find this very useful, because I usually have more than one open browser and sometime I prefer to open the documentation in a browser that is not the system default one.
I have a mostly working patch for this issue but my rust-foo is poor (very poor when strings come in) and the code is not something I'm very proud of.
If the feature is something someone else is interested in, I can open a PR for further review.
The text was updated successfully, but these errors were encountered: