public
Description: bash, git, vim, irb, rails, sake
Clone URL: git://github.com/mislav/dotfiles.git
Search Repo:
update cdgem/gemdoc functions to use "gem env gemdir"
mislav (author)
Tue May 13 06:16:04 -0700 2008
commit  9ab7069758c27b7aa6821c6833c9282bc2de630e
tree    cbc0e506f56cfab4bc59d42536537f33d3ef7bd6
parent  098ae3cf4b975076e5cd49df9d6434759e79b61b
...
56
57
58
59
 
60
61
62
63
 
 
64
65
66
67
...
69
70
71
72
73
74
75
76
 
 
 
 
77
78
79
...
56
57
58
 
59
60
61
62
 
63
64
65
66
67
68
...
70
71
72
 
 
 
73
 
74
75
76
77
78
79
80
0
@@ -56,11 +56,12 @@
0
 # really awesome function, use: cdgem <gem name>, cd's into your gems directory
0
 # and opens gem that best matches the gem name provided
0
 function cdgem {
0
- cd /usr/lib/ruby/gems/1.8/gems/
0
+ cd `gem env gemdir`/gems
0
   cd `ls | grep $1 | sort | tail -1`
0
 }
0
 function gemdoc {
0
- firefox /usr/lib/ruby/gems/1.8/doc/`ls /usr/lib/ruby/gems/1.8/doc | grep $1 | sort | tail -1`/rdoc/index.html
0
+ GEMDIR=`gem env gemdir`/doc
0
+ gnome-open $GEMDIR/`ls $GEMDIR | grep $1 | sort | tail -1`/rdoc/index.html
0
 }
0
 
0
 alias qri='qri -w 106'
0
0
@@ -69,11 +70,11 @@
0
 #########
0
 # RAILS #
0
 #########
0
-alias ss='script/server' # start up the beast
0
-alias sr='kill -USR2 `cat tmp/pids/mongrel.pid`' # restart detached Mongrel
0
-alias sst='kill `cat tmp/pids/mongrel.pid`' # restart detached Mongrel
0
 alias sc='script/console'
0
-alias a='autotest -rails' # makes autotesting even quicker
0
+alias ss='script/server' # start up the beast; use "ss -d" to detach
0
+alias sr='kill -USR2 `cat tmp/pids/mongrel.pid`' # restart daemonized Mongrel
0
+alias sst='kill `cat tmp/pids/mongrel.pid`' # stop daemonized Mongrel
0
+alias a='autotest -rails'
0
 
0
 # see http://railstips.org/2007/5/31/even-edgier-than-edge-rails
0
 function edgie() {

Comments

    No one has commented yet.