Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (10 sloc) 549 Bytes

This is a clone of of to provide ZSH integration with git.

Example usage in .zshrc, assuming this is checked out to ~/work/zsh-git:

# Autoload zsh functions.
fpath=($fpath ~/work/zsh-git)
autoload -U ~/work/zsh-git/*(:t)
# Append git functions needed for prompt.
precmd_functions=(precmd_update_git_vars $precmd_functions)

# Use $(prompt_git_info) in your prompt and/or window title