Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use hitch for git prompt

  • Loading branch information...
commit 5ed15e68afc6dc04625b8b55a9503ef3db907608 1 parent 4aea378
Chad Humphries authored
Showing with 3 additions and 16 deletions.
  1. +1 −0  .zsh/exports.zsh
  2. +2 −16 .zsh/prompt.zsh
1  .zsh/exports.zsh
View
@@ -28,6 +28,7 @@ export PYTHONPATH=/usr/local/lib/python2.6/site-packages
# CTAGS Sorting in VIM/Emacs is better behaved with this in place
export LC_COLLATE=C
+# For the custom built ruby 1.9.3 I rocks
# https://gist.github.com/1688857
export RUBY_HEAP_MIN_SLOTS=1000000
export RUBY_HEAP_SLOTS_INCREMENT=1000000
18 .zsh/prompt.zsh
View
@@ -1,22 +1,8 @@
-function parse_git_branch {
- git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\/git:\1/'
-}
-
-function pair_info {
- local pairname=$(git config --get user.initials)
- if [[ ${pairname} == 'ch' ]]; then
- pairname=''
- else
- pairname=" ($pairname)"
- fi
- echo "$pairname"
-}
-
function git_prompt_info {
local ref=$(git symbolic-ref HEAD 2> /dev/null)
local gitst="$(git status 2> /dev/null)"
- local pairname=$(git config --get user.initials)
- if [[ ${pairname} == 'ch' ]]; then
+ local pairname=${${${GIT_AUTHOR_EMAIL#pair+}%@thinkrelevance.com}//+/\/}
+ if [[ ${pairname} == 'ch' || ${pairname} == '' ]]; then
pairname=''
else
pairname=" ($pairname)"
Please sign in to comment.
Something went wrong with that request. Please try again.