]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-web--browse.txt
Sync with 1.6.4.2
[thirdparty/git.git] / Documentation / git-web--browse.txt
CommitLineData
cb45f83c
CC
1git-web--browse(1)
2==================
3
4NAME
5----
6git-web--browse - git helper script to launch a web browser
7
8SYNOPSIS
9--------
b1889c36 10'git web--browse' [OPTIONS] URL/FILE ...
cb45f83c
CC
11
12DESCRIPTION
13-----------
14
15This script tries, as much as possible, to display the URLs and FILEs
16that are passed as arguments, as HTML pages in new tabs on an already
17opened web browser.
18
19The following browsers (or commands) are currently supported:
20
21* firefox (this is the default under X Window when not using KDE)
22* iceweasel
ac3a4a26 23* konqueror (this is the default under KDE, see 'Note about konqueror' below)
cb45f83c
CC
24* w3m (this is the default outside graphical environments)
25* links
26* lynx
27* dillo
28* open (this is the default under Mac OS X GUI)
3b9b1163 29* start (this is the default under MinGW)
cb45f83c 30
1658c614
CC
31Custom commands may also be specified.
32
cb45f83c
CC
33OPTIONS
34-------
3240240f
SB
35-b BROWSER::
36--browser=BROWSER::
cb45f83c
CC
37 Use the specified BROWSER. It must be in the list of supported
38 browsers.
39
3240240f
SB
40-t BROWSER::
41--tool=BROWSER::
cb45f83c
CC
42 Same as above.
43
3240240f
SB
44-c CONF.VAR::
45--config=CONF.VAR::
cb45f83c
CC
46 CONF.VAR is looked up in the git config files. If it's set,
47 then its value specify the browser that should be used.
48
49CONFIGURATION VARIABLES
50-----------------------
51
1658c614
CC
52CONF.VAR (from -c option) and web.browser
53~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
54
cb45f83c
CC
55The web browser can be specified using a configuration variable passed
56with the -c (or --config) command line option, or the 'web.browser'
57configuration variable if the former is not used.
58
1658c614
CC
59browser.<tool>.path
60~~~~~~~~~~~~~~~~~~~
61
cb45f83c
CC
62You can explicitly provide a full path to your preferred browser by
63setting the configuration variable 'browser.<tool>.path'. For example,
64you can configure the absolute path to firefox by setting
ba020ef5 65'browser.firefox.path'. Otherwise, 'git-web--browse' assumes the tool
cb45f83c
CC
66is available in PATH.
67
1658c614
CC
68browser.<tool>.cmd
69~~~~~~~~~~~~~~~~~~
70
71When the browser, specified by options or configuration variables, is
72not among the supported ones, then the corresponding
73'browser.<tool>.cmd' configuration variable will be looked up. If this
ba020ef5 74variable exists then 'git-web--browse' will treat the specified tool
1658c614
CC
75as a custom command and will use a shell eval to run the command with
76the URLs passed as arguments.
77
ac3a4a26
CC
78Note about konqueror
79--------------------
80
b66e00f1 81When 'konqueror' is specified by a command line option or a
ac3a4a26
CC
82configuration variable, we launch 'kfmclient' to try to open the HTML
83man page on an already opened konqueror in a new tab if possible.
84
ed020917 85For consistency, we also try such a trick if 'browser.konqueror.path' is
ac3a4a26
CC
86set to something like 'A_PATH_TO/konqueror'. That means we will try to
87launch 'A_PATH_TO/kfmclient' instead.
88
89If you really want to use 'konqueror', then you can use something like
90the following:
91
92------------------------------------------------
93 [web]
94 browser = konq
95
96 [browser "konq"]
97 cmd = A_PATH_TO/konqueror
98------------------------------------------------
99
b1889c36 100Note about git-config --global
1658c614
CC
101~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
102
cb45f83c
CC
103Note that these configuration variables should probably be set using
104the '--global' flag, for example like this:
105
106------------------------------------------------
107$ git config --global web.browser firefox
108------------------------------------------------
109
110as they are probably more user specific than repository specific.
111See linkgit:git-config[1] for more information about this.
112
113Author
114------
115Written by Christian Couder <chriscool@tuxfamily.org> and the git-list
ba020ef5 116<git@vger.kernel.org>, based on 'git-mergetool' by Theodore Y. Ts'o.
cb45f83c
CC
117
118Documentation
119-------------
120Documentation by Christian Couder <chriscool@tuxfamily.org> and the
121git-list <git@vger.kernel.org>.
122
123GIT
124---
9e1f0a85 125Part of the linkgit:git[1] suite