Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

use hitch for git prompt

  • Loading branch information...
commit 5ed15e68afc6dc04625b8b55a9503ef3db907608 1 parent 4aea378
Chad Humphries authored

Showing 2 changed files with 3 additions and 16 deletions. Show diff stats Hide diff stats

  1. +1 0  .zsh/exports.zsh
  2. +2 16 .zsh/prompt.zsh
1  .zsh/exports.zsh
@@ -28,6 +28,7 @@ export PYTHONPATH=/usr/local/lib/python2.6/site-packages
28 28 # CTAGS Sorting in VIM/Emacs is better behaved with this in place
29 29 export LC_COLLATE=C
30 30
  31 +# For the custom built ruby 1.9.3 I rocks
31 32 # https://gist.github.com/1688857
32 33 export RUBY_HEAP_MIN_SLOTS=1000000
33 34 export RUBY_HEAP_SLOTS_INCREMENT=1000000
18 .zsh/prompt.zsh
... ... @@ -1,22 +1,8 @@
1   -function parse_git_branch {
2   - git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\/git:\1/'
3   -}
4   -
5   -function pair_info {
6   - local pairname=$(git config --get user.initials)
7   - if [[ ${pairname} == 'ch' ]]; then
8   - pairname=''
9   - else
10   - pairname=" ($pairname)"
11   - fi
12   - echo "$pairname"
13   -}
14   -
15 1 function git_prompt_info {
16 2 local ref=$(git symbolic-ref HEAD 2> /dev/null)
17 3 local gitst="$(git status 2> /dev/null)"
18   - local pairname=$(git config --get user.initials)
19   - if [[ ${pairname} == 'ch' ]]; then
  4 + local pairname=${${${GIT_AUTHOR_EMAIL#pair+}%@thinkrelevance.com}//+/\/}
  5 + if [[ ${pairname} == 'ch' || ${pairname} == '' ]]; then
20 6 pairname=''
21 7 else
22 8 pairname=" ($pairname)"

0 comments on commit 5ed15e6

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