Announcing the release of “ruby which”[1]
README:
Ruby-which is the linux “which” command re-written in ruby [and
windows-friendly].
– An executable locator (which command) for windows that actually
works!
There seems to be a lack of a “which” command for windows that
actually work–they sometimes skip batch files entirely [batch file?
what’s that?] or don’t list extensions, leaving you in doubt. Despite
running “which yyy” you never know what you’re really running when you
next run yyy in the command line–is it yyy.exe or some other yyy.bat
that wasn’t reported by “which”?
Try it–you might really like it.
To install:
C:>gem install rogerdpack-whichr
C:>whichr executable_name_here [extension can be included, but is
optional]
usage:
C:>whichr ruby
higher in the list will be executed first
./ruby.bat
C:/Ruby/bin/ruby.exe
c:/cygwin/bin/ruby.exe
Feedback welcome rogerdpack on github/gmail
[1] not to be confused with this
witch…- YouTube
Also Related: GitHub - Pistos/ruby-which: Like the UNIX "which" tool, but for Ruby libraries. – this library
discovers the location of installed ruby libraries, i.e. which gem
folder they’re in
“C:>rwhich ruby-which
c:/ruby/lib/ruby/gems/1.9.1/gems/Pistos-ruby-which-0.5.3/lib/ruby-which.rb”
Enjoy.
-r