Commit graph

4 commits

Author SHA1 Message Date
Andrew Janke
3efa6ceddd Timebox the git status checks inside prompt so slow repos don't hang the zsh prompt.
Give "robbyrussell" them support for the timed-out check.

Uses zsh's `coproc` to put a timeout on the `git status` call inside git_prompt_info()
Introduces $ZSH_THEME_GIT_PROMPT_TIMEDOUT and $ZSH_THEME_SCM_CHECK_TIMEOUT theme configuration variables to control how long the timeout is and how the timed-out indicator appears inside the prompt.
2015-03-26 17:53:02 -04:00
Rach Belaid
ff7e064896 change the color of arrow when the command line return an error 2012-02-19 19:54:33 +00:00
Christopher Sexton
85a4e30289 Added risto theme and made git.zsh themable
* git.zsh is now themable:
   * git_prompt_info() now will look in the following variables for
     formatting strings:
     * ZSH_THEME_GIT_PROMPT_PREFIX - Prefix for the prompt (before the
       branch name)
     * ZSH_THEME_GIT_PROMPT_SUFFIX - The very end of the prompt
     * ZSH_THEME_GIT_PROMPT_DIRTY - Displayed when the branch is dirty
     * ZSH_THEME_GIT_PROMPT_CLEAN - Displayed when the branch is clean
 * Updated geoffgarside, robbyrussell, and maran to work with new git
   theme
 * Added the Risto theme, which is very similar to a number of bash
   prompts, and allows me to use zsh in with out my co-workers knowing I
   have the advantage. Think of it as a ninja theme.
2009-09-14 12:42:53 -04:00
Robby Russell
2c9f74b5c3 Adding theme support so that people can share their zsh prompts with others. Users can set which theme to load in zshrc now. 2009-08-31 07:45:31 -07:00