This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/modules/git/style.zsh

65 lines
1.7 KiB
Bash
Raw Normal View History

2012-03-28 12:41:39 -04:00
#
# Defines Git information display styles.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# %s - Special action name (am, merge, rebase).
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' action 'action:%s'
2012-03-28 12:41:39 -04:00
# %a - Indicator to notify of added files.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' added 'added:%a'
2012-03-28 12:41:39 -04:00
# %A - Indicator to notify of ahead branch.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' ahead 'ahead:%A'
2012-03-28 12:41:39 -04:00
# %B - Indicator to notify of behind branch.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' behind 'behind:%B'
2012-03-28 12:41:39 -04:00
# %b - Branch name.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' branch 'branch:%b'
2012-03-28 12:41:39 -04:00
# %c - SHA-1 hash.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' commit 'commit:%c'
2012-03-28 12:41:39 -04:00
# %d - Indicator to notify of deleted files.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' deleted 'deleted:%d'
2012-03-28 12:41:39 -04:00
# %D - Indicator to notify of dirty files.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' dirty 'dirty:%D'
2012-03-28 12:41:39 -04:00
# %m - Indicator to notify of modified files.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' modified 'modified:%m'
2012-03-28 12:41:39 -04:00
# %p - HEAD position in relation to the nearest branch, remote, tag.
zstyle ':omz:module:git:prompt' position 'position:%p'
# %R - Remote name.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' remote 'remote:%R'
2012-03-28 12:41:39 -04:00
# %r - Indicator to notify of renamed files.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' renamed 'renamed:%r'
2012-03-28 12:41:39 -04:00
# %S - Indicator to notify of stashed files.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' stashed 'stashed:%S'
2012-03-28 12:41:39 -04:00
# %U - Indicator to notify of unmerged files.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' unmerged 'unmerged:%U'
2012-03-28 12:41:39 -04:00
# %u - Indicator to notify of untracked files.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' untracked 'untracked:%u'
2012-03-28 12:41:39 -04:00
# Left prompt.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' prompt ' git:(%b %D)'
2012-03-28 12:41:39 -04:00
# Right prompt.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git' rprompt ''
2012-03-28 12:41:39 -04:00
# Ignore submodule.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git:ignore' submodule 'no'
2012-03-28 12:41:39 -04:00
# Ignore submodule when it is 'dirty', 'untracked', 'all', or 'none'.
2012-04-03 00:29:43 -04:00
zstyle ':omz:module:git:ignore:submodule' when 'all'
2012-03-28 12:41:39 -04:00