Permalink
Browse files

Add readme.md

  • Loading branch information...
1 parent f1980ff commit 67b3dfe84028ce50fef68e8c7c1bc2ee4b626e68 Dave Dribin committed Mar 15, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 readme.md
View
@@ -0,0 +1,14 @@
+This is a clone of <https://gist.github.com/244215> 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.
+ preexec_functions+='preexec_update_git_vars'
+ precmd_functions=(precmd_update_git_vars $precmd_functions)
+ chpwd_functions+='chpwd_update_git_vars'
+
+ # Use $(prompt_git_info) in your prompt and/or window title

0 comments on commit 67b3dfe

Please sign in to comment.