There is one configuration file per terminal type in GIT
. The
configuration file(s) reside in the user's home directory or (the
default versions) in the directory `$(prefix)/lib' (usually
`/usr/local/lib').
Their generic name is `.gitrc.TERM'. GIT
allows each
terminal type to have its own configuration file (TERM is the
value of the TERM environment variable (e.g `vt102'); for the
Linux
console the configuration file is `.gitrc.console').
Since most of the key bindings are common to all the terminal types, a configuration file called `.gitrc.common' is parsed before parsing the normal `.gitrc.TERM' configuration file, the later one defining only those keys that are terminal specific. However, if a key binding is redefined in the `.gitrc.TERM' file, that binding will be used.
If the GIT
package have been compiled without passing the
`--enable-terminfo' option to the configure
script and your
system has a huge `termcap' database (`/etc/termcap'), you can
copy the termcap definition(s) of your terminal(s) in a file called,
lets say `.termcap' and put it in your home directory. After that,
set your TERMCAP environment variable to point to it. You should
add something like this to your `.profile':
TERMCAP=`/home/mike/.termcap'
The interactive programs in the GIT
package can run without such
a file, but on systems with huge `termcap' databases, copying the
definitions of the most used terminals in a local `.termcap' file
will lead to a faster start.
The `.gitrc.TERM' it is first time searched in the home directory then, if not found, in the directory `$(prefix)/lib' (usually `/usr/local/lib'). The configuration file is structured on sections, each section containing variables in the following format:
`variable-name' = `first-field';`second-field'; ...
After the `variable-name' at least one space or tab is required. All characters after a `#' are ignored and if you comment a section name, the whole section is ignored.
Section names are enclosed in rectangular brackets (`[' and `]'). Note that this manual don't include them while refering to section names.
The GIT
package contains three major programs: git
,
gitps
and gitview
. Each one has its own sections in the
configuration files. There is also a global setup section called
`Setup' that is used by all these programs.
Go to the first, previous, next, last section, table of contents.