ohmyzsh/plugins
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
..
brew adapt brew,gem,pip plugin to new structure 2010-10-01 10:59:48 +02:00
cap Removing capistrano aliases/functions from rails plugin (since cap is not rails-specific). 2010-10-01 14:15:52 -05:00
command-not-found command-not-found package in ubuntu 2010-10-25 16:02:16 -05:00
dirpersist Reorganizing plugins so that each plugin has it's own directory now so that any plugin-specific functions can be bundled within there. 2010-09-30 21:34:06 -07:00
gem adapt brew,gem,pip plugin to new structure 2010-10-01 10:59:48 +02:00
git Typo 2010-12-20 12:57:23 -03:00
github bugfix - moved gem info 2010-10-09 18:38:01 +01:00
lighthouse Fix lighthouse plugin error message 2010-11-02 11:26:49 +00:00
macports Reorganizing plugins so that each plugin has it's own directory now so that any plugin-specific functions can be bundled within there. 2010-09-30 21:34:06 -07:00
mysql Reorganizing plugins so that each plugin has it's own directory now so that any plugin-specific functions can be bundled within there. 2010-09-30 21:34:06 -07:00
osx Reorganizing plugins so that each plugin has it's own directory now so that any plugin-specific functions can be bundled within there. 2010-09-30 21:34:06 -07:00
phing Added phing plugin 2010-11-09 14:56:26 +01:00
pip adapt brew,gem,pip plugin to new structure 2010-10-01 10:59:48 +02:00
rails Removing capistrano aliases/functions from rails plugin (since cap is not rails-specific). 2010-10-01 14:15:52 -05:00
rails3 Removed remote_console. It doesn't handle rvm, capistrano, and so on. 2010-12-20 12:50:55 -03:00
ruby Reorganizing plugins so that each plugin has it's own directory now so that any plugin-specific functions can be bundled within there. 2010-09-30 21:34:06 -07:00
ssh-agent Reorganizing plugins so that each plugin has it's own directory now so that any plugin-specific functions can be bundled within there. 2010-09-30 21:34:06 -07:00
textmate Reorganizing plugins so that each plugin has it's own directory now so that any plugin-specific functions can be bundled within there. 2010-09-30 21:34:06 -07:00
vagrant improved formatting; redundant attributes deleted 2010-11-15 15:18:58 -05:00
vi-mode Reorganizing plugins so that each plugin has it's own directory now so that any plugin-specific functions can be bundled within there. 2010-09-30 21:34:06 -07:00