diff options
author | hut <hut@lavabit.com> | 2009-06-13 05:43:41 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-06-13 05:43:41 +0200 |
commit | c4a4202f5b2b1d1794182e19bf59c11e74fe88e8 (patch) | |
tree | 3eed0c8eb2d809e6ffef9fa2728e1a36eaa40b60 /data | |
parent | 1a479ad6ab90ec1d406324011124b39cc783c135 (diff) | |
download | ranger-c4a4202f5b2b1d1794182e19bf59c11e74fe88e8.tar.gz |
add checks
Diffstat (limited to 'data')
-rw-r--r-- | data/apps.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/apps.rb b/data/apps.rb index 1a9b65d0..112dbf60 100644 --- a/data/apps.rb +++ b/data/apps.rb @@ -46,6 +46,7 @@ module Application end def vi(rc) + check rc commands = [ 'map h :quit<cr>', 'map q h', @@ -56,18 +57,22 @@ module Application end def javac(rc) + check rc "javac #{~rc}" end def java(rc) + check rc "java #{rc.files.map{|x| ~x.before_last('.')}.join(' ')}" end def firefox(rc) + check rc "firefox #{~rc}" end def make(rc) + check rc case rc.mode when 0; "make" when 1; "make install" @@ -76,6 +81,7 @@ module Application end def rake(rc) + check rc "rake" end end |