ohmyzsh/lib
Robin Ramael a6ad9d6775 Infrastructure for displaying scm info in prompt + implemented for git and svn
this should not break the old way of putting git info in the prompt.

Also changed awesomepanda theme to use the new scm architecture.

for users:
this works the same as plugins: the scms variable is set in ~/.zshrc with a list of SCM for which info should be displayed in the prompt, as simple as that.

for theme developers:
instead of calling the git_prompt_info function, you can call the get_scm_prompt, which will display info for all the scms in the scms variable.
the following variables can be used in the old git-way:

ZSH_THEME_SCM_PROMPT_PREFIX: before everything but the scm's name (svn, git, ..)
ZSH_THEME_SCM_PROMPT_SUFFIX: after everything
ZSH_THEME_SCM_PROMPT_DIRTY: displayed when the repo is dirty
ZSH_THEME_SCM_PROMPT_CLEAN	displated when the repo is clean

by default, the name of the scm (git, svn, ...) is not displayed before the scm info, but this can be changed by setting the ZSH_THEME_SCM_DISPLAY_NAME to 1.

for scm-plugin developers:
to make an scm plugin with the name 'foo':
add a script called 'foo.scm.zsh' in to the scm folder. this script has to contain two functions:
    scm_in_foo_repo: checks wether we are in a foo repo, usually by checking if a .foo folder is present
    scm_foo_prompt_info: returns the prompt which follows the rules outlined above (in the "for theme developers"-section)
2011-01-09 16:25:57 +01:00
..
aliases.zsh Removing '.' alias as it is overwriting a bash/zsh feature. Closes #63 2010-08-24 11:08:20 -07:00
appearance.zsh Infrastructure for displaying scm info in prompt + implemented for git and svn 2011-01-09 16:25:57 +01:00
completion.zsh Completion fixes 2010-11-03 16:57:15 -04:00
correction.zsh Don't correct hpodder commands. 2010-06-05 23:23:53 +08:00
directories.zsh Added function to mkdir and immediately change to it 2010-12-21 14:28:40 -05:00
functions.zsh merging in changes from robby's repo 2010-10-09 19:11:07 +01:00
git.zsh merging in changes from robby's repo 2010-10-09 19:11:07 +01:00
grep.zsh Moving all zsh config options into a lib/ subdirectory to make way for some upcoming changes to directory structure and configuration options 2009-09-23 07:43:36 -07:00
history.zsh Ignore commands that start with a space. 2010-06-05 23:22:57 +08:00
key-bindings.zsh Merge branch 'shifttab' of http://github.com/kremso/oh-my-zsh into kremso-shifttab 2010-09-30 20:48:10 -07:00
misc.zsh Joined the appearance so the theme can apply LSCOLORS too 2009-11-04 20:37:18 +01:00
rvm.zsh Import rvm prompt 2010-05-28 08:13:17 +08:00
spectrum.zsh escape sequences so rprompt doesn't mess up 2010-05-06 20:46:32 -07:00
termsupport.zsh Revert "Added my prompt theme, with a tweak to the core oh-my-zsh to support it. My git_prompt_info function not only reports the branch and dirty status, but also whether or not the branch is ahead or behind of the remote, or both. It also switches the prompt colour from green to red if the previous command exited with a non-zero value (i.e. failed)." 2009-11-09 07:33:51 -08:00