# version of configuration file # right now it needs to be set to '1' version: '1' # configuration of various values (required), type dict # if you omit a value, it won't be displayed values: # usually repository is in state 'clean' (which is not displayed) # but it can also be in state like merge, rebase, cherry-pick -- this is displayed then - type: repository_state # formatting (required), both (pre_format, post_format) are required # you can include coloring in pre_format and reset colors in post_format # you can also include arbitrary string # for more information about setting colors for zsh: # https://wiki.archlinux.org/index.php/zsh#Colors # http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Visual-effects # and bash: # https://www.ibm.com/developerworks/linux/library/l-tip-prompt/ # # this is how the value is formatted in the end: # [pre_format][value][post_format] pre_format: '' post_format: '' # this is used to separate values between each other # if there is no value displayed before or after separator, separator is not displayed either - type: separator display: surrounded pre_format: '│' post_format: '' # monitor status against different remotes - track history divergence - type: remote_difference # remote branch name (optional), type string # example: 'upstream/master' # if omitted look for remotely tracked branch usually set up with: # git branch --set-upstream-to # remote_branch: '' # display the remote even if there is no difference with current branch (required), type bool display_if_uptodate: true pre_format: '' post_format: '' # values which can be displayed as part of 'remote_difference' values: # formatting for remote name and branch name - type: name # there are some special values which are substituted: # * will be replaced with name of a remote # * will be replaced with current branch name # * will be replaced with name of remote branch pre_format: '\[\e[38;5;4m\]' post_format: '\[\e[0m\]' # the number of files present locally which are missing in remote repo - type: ahead pre_format: '\[\e[38;5;7m\]↑' post_format: '\[\e[0m\]' - type: behind pre_format: '\[\e[38;5;7m\]↓' post_format: '\[\e[0m\]' - type: separator display: surrounded pre_format: '│' post_format: '' - type: remote_difference remote_branch: 'upstream/master' display_if_uptodate: false pre_format: '' post_format: '' values: - type: name pre_format: '\[\e[38;5;2m\]' post_format: '\[\e[0m\]' - type: ahead pre_format: '\[\e[38;5;7m\]↑' post_format: '\[\e[0m\]' - type: behind pre_format: '\[\e[38;5;7m\]↓' post_format: '\[\e[0m\]' - type: separator display: surrounded pre_format: '│' post_format: '' # the number of untracked files - type: new pre_format: '\[\e[38;5;248m\]✚' post_format: '\[\e[0m\]' # the number of tracked files which were changed in working tree - type: changed pre_format: '\[\e[38;5;166m\]Δ' post_format: '\[\e[0m\]' # the number of files added to index - type: staged pre_format: '\[\e[38;5;2m\]▶' post_format: '\[\e[0m\]' # during merge, rebase, or others, the numbers files which conflict - type: conflicts pre_format: '\[\e[38;5;226m\]✖' post_format: '\[\e[0m\]' - type: separator display: surrounded pre_format: '│' post_format: '' # show number of items in stash - type: stash pre_format: '\[\e[38;5;226m\]☐' post_format: '\[\e[0m\]'