1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 10:51:41 +00:00

[Fix #96] Add documentation for git

This commit is contained in:
Sorin Ionescu
2012-10-01 22:48:13 -04:00
parent 3f4d5fac0c
commit be300dbd80
4 changed files with 300 additions and 61 deletions

View File

@ -4,65 +4,6 @@
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Usage:
# Define the following styles in a prompt theme setup function.
#
# # %s - Special action name (am, merge, rebase).
# zstyle ':prezto:module:git' action 'action:%s'
#
# # %a - Indicator to notify of added files.
# zstyle ':prezto:module:git' added 'added:%a'
#
# # %A - Indicator to notify of ahead branch.
# zstyle ':prezto:module:git' ahead 'ahead:%A'
#
# # %B - Indicator to notify of behind branch.
# zstyle ':prezto:module:git' behind 'behind:%B'
#
# # %b - Branch name.
# zstyle ':prezto:module:git' branch 'branch:%b'
#
# # %C - Indicator to notify of a clean working directory.
# zstyle ':prezto:module:git' clean 'clean'
#
# # %c - SHA-1 hash.
# zstyle ':prezto:module:git' commit 'commit:%c'
#
# # %d - Indicator to notify of deleted files.
# zstyle ':prezto:module:git' deleted 'deleted:%d'
#
# # %D - Indicator to notify of dirty files.
# zstyle ':prezto:module:git' dirty 'dirty:%D'
#
# # %m - Indicator to notify of modified files.
# zstyle ':prezto:module:git' modified 'modified:%m'
#
# # %p - HEAD position in relation to the nearest branch, remote, tag.
# zstyle ':prezto:module:git' position 'position:%p'
#
# # %R - Remote name.
# zstyle ':prezto:moduleit' remote 'remote:%R'
#
# # %r - Indicator to notify of renamed files.
# zstyle ':prezto:module:git' renamed 'renamed:%r'
#
# # %S - Indicator to notify of stashed files.
# zstyle ':prezto:module:git' stashed 'stashed:%S'
#
# # %U - Indicator to notify of unmerged files.
# zstyle ':prezto:module:git' unmerged 'unmerged:%U'
#
# # %u - Indicator to notify of untracked files.
# zstyle ':prezto:module:git' untracked 'untracked:%u'
#
# # Ignore submodule when it is 'dirty', 'untracked', 'all', or 'none'.
# zstyle ':prezto:module:git:ignore' submodule ''
#
# # Prompts.
# zstyle ':prezto:module:git' info \
# 'prompt' ' git:(%b%C%D)' \
# 'rprompt' ''
#
# Gets the Git special action (am, bisect, cherry, merge, rebase).
# Borrowed from vcs_info and edited.