@@ -27,6 +27,8 @@ The following browsers (or commands) are currently supported:
27
27
* dillo
28
28
* open (this is the default under Mac OS X GUI)
29
29
30
+ Custom commands may also be specified.
31
+
30
32
OPTIONS
31
33
-------
32
34
-b BROWSER|--browser=BROWSER::
@@ -43,16 +45,35 @@ OPTIONS
43
45
CONFIGURATION VARIABLES
44
46
-----------------------
45
47
48
+ CONF.VAR (from -c option) and web.browser
49
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
50
+
46
51
The web browser can be specified using a configuration variable passed
47
52
with the -c (or --config) command line option, or the 'web.browser'
48
53
configuration variable if the former is not used.
49
54
55
+ browser.<tool>.path
56
+ ~~~~~~~~~~~~~~~~~~~
57
+
50
58
You can explicitly provide a full path to your preferred browser by
51
59
setting the configuration variable 'browser.<tool>.path'. For example,
52
60
you can configure the absolute path to firefox by setting
53
61
'browser.firefox.path'. Otherwise, 'git-web--browse' assumes the tool
54
62
is available in PATH.
55
63
64
+ browser.<tool>.cmd
65
+ ~~~~~~~~~~~~~~~~~~
66
+
67
+ When the browser, specified by options or configuration variables, is
68
+ not among the supported ones, then the corresponding
69
+ 'browser.<tool>.cmd' configuration variable will be looked up. If this
70
+ variable exists then "git web--browse" will treat the specified tool
71
+ as a custom command and will use a shell eval to run the command with
72
+ the URLs passed as arguments.
73
+
74
+ Note about git config --global
75
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76
+
56
77
Note that these configuration variables should probably be set using
57
78
the '--global' flag, for example like this:
58
79
0 commit comments