Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add readme.md

  • Loading branch information...
commit 67b3dfe84028ce50fef68e8c7c1bc2ee4b626e68 1 parent f1980ff
authored March 15, 2012

Showing 1 changed file with 14 additions and 0 deletions. Show diff stats Hide diff stats

  1. 14  readme.md
14  readme.md
Source Rendered
... ...
@@ -0,0 +1,14 @@
  1
+This is a clone of <https://gist.github.com/244215> of to provide ZSH integration with git.
  2
+
  3
+Example usage in .zshrc, assuming this is checked out to `~/work/zsh-git`:
  4
+
  5
+    # Autoload zsh functions.
  6
+    fpath=($fpath ~/work/zsh-git)
  7
+    autoload -U ~/work/zsh-git/*(:t)
  8
+     
  9
+    # Append git functions needed for prompt.
  10
+    preexec_functions+='preexec_update_git_vars'
  11
+    precmd_functions=(precmd_update_git_vars $precmd_functions)
  12
+    chpwd_functions+='chpwd_update_git_vars'
  13
+    
  14
+    # Use $(prompt_git_info) in your prompt and/or window title

0 notes on commit 67b3dfe

Please sign in to comment.
Something went wrong with that request. Please try again.