Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved the git stuff out since it's not applicable everywhere I have a…

… Zsh instance
  • Loading branch information...
commit 741eef47a68fff1e88d8e0d65a149e14c73c9721 1 parent 7c7450a
Derek Wyatt authored
Showing with 0 additions and 33 deletions.
  1. +0 −33 zshrc
View
33 zshrc
@@ -178,39 +178,6 @@ function ff
return 0
}
-function gitnotify
-{
- if [[ ! -d .git ]]; then
- eecho "You're not in a git repository dumbass"
- return 1
- fi
- local proj="$(basename $(pwd))"
- local commit=$(git log -1 | head -1 | awk '{print $2}')
- local url="$(printf 'http://gitweb.rim.net/?p=users/dwyatt/%s.git;a=commit;h=%s' $proj $commit)"
- for user in $*
- do
- local email=
- case $user in
- ron) email=ropuri@rim.com
- ;;
- derek) email=dwyatt@rim.com
- ;;
- esac
- if [[ -n $email ]]; then
- ssmtp $email <<EOH
- To: $email
- From: dwyatt@rim.com
- Subject: Commit on $proj
- Content-Type: text/html; charset="us-ascii"
- <html>
- <a href='$url'>$commit</a>
- </html>
-EOH
- eecho "sent notification to $user ($email)"
- fi
- done
-}
-
# Assorted
alias swps='find . -name .\*.sw[op]'
alias rmstd='xargs rm -vf'
Please sign in to comment.
Something went wrong with that request. Please try again.