Permalink
Browse files

add gemdoc and tags

  • Loading branch information...
1 parent 0dbfacc commit 22e3be2d3f2ad87a9de12822fb3e921a7222c4dd @txus txus committed Mar 13, 2012
Showing with 15 additions and 0 deletions.
  1. +10 −0 bin/gemdoc
  2. +5 −0 bin/tags
View
10 bin/gemdoc
@@ -0,0 +1,10 @@
+#!/bin/bash
+export GEMDIR=`gem env gemdir`
+
+gemdoc() {
+ local gems=($GEMDIR/doc/$1*/rdoc/index.html)
+ echo ${gems[@]:-1}
+ open ${gems[@]:-1}
+}
+
+complete -W '$(`which ls` $GEMDIR/doc)' gemdoc
View
5 bin/tags
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+set -e
+
+/usr/local/bin/ctags -R --languages=ruby --exclude=spec,test,features . `rvm gemdir`/gems

0 comments on commit 22e3be2

Please sign in to comment.