1
0
Fork 0
mirror of synced 2024-06-24 01:11:10 -04:00

Update git-info README.md

to fix the "Special Action Contexts" title mistakenly being "Untracked
Contexts", and other minor changes.
This commit is contained in:
Eric Nielsen 2016-12-03 07:59:37 -05:00
parent 2ece8f42d7
commit 11cb9ab1a8

View file

@ -28,16 +28,16 @@ also untracked files. It can be enabled with the following zstyle:
zstyle ':zim:git-info' verbose 'yes' zstyle ':zim:git-info' verbose 'yes'
In non-verbose mode, the 'untracked' context is not available (see Main In non-verbose mode, the 'untracked' context is not available (see Main
Contexts below), and also untracked files are not considered for computing the Contexts below), and untracked files are also not considered for computing the
'dirty' context. Using `git status` or checking for untracked files is 'dirty' context. Using `git status` or checking for untracked files can be
[expensive](https://gist.github.com/sindresorhus/3898739). [expensive](https://gist.github.com/sindresorhus/3898739).
Theming Theming
------- -------
To display information about the current repository in a prompt, define the To display information about the current repository in a prompt, define your
following styles in the `prompt_name_setup` function, where the syntax for custom styles in the `prompt_name_setup` function, where the syntax for setting
setting a style is: a style is:
zstyle ':zim:git-info:context' format 'string' zstyle ':zim:git-info:context' format 'string'
@ -59,7 +59,7 @@ setting a style is:
| stashed | %S | Stashed states count | stashed | %S | Stashed states count
| untracked | %u | Untracked files count (only if verbose enabled) | untracked | %u | Untracked files count (only if verbose enabled)
### Untracked Contexts ### Special Action Contexts
| Name | Format | Default Value | Name | Format | Default Value
| --------------------------- | :-----: | ------------------------------------- | --------------------------- | :-----: | -------------------------------------