-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
which_ruby: the linux "which" command re-written in ruby [and windows-friendly/aware [recognizes .bat files, etc.]] | ||
which_ruby: the linux "which" command re-written in ruby [and windows-friendly+aware [recognizes .bat files, etc.]] | ||
|
||
A which command for windows that actually works! | ||
|
||
Itch it scratches: there seems to be a lack of a "which" command for windows that actually works--they all skip batch files or report file output without extensions, so even if you run "which xxx" you never know what you're really running when you type xxx in the command line--is it xxx.exe [the thing reported from 'which'] or xxx.bat somewhere previous to this in the path? This executable makes this crystal clear and is a must have for every windows developer. | ||
|
||
Itch it scratches: there seems to be no "which" command for windows that actually works--they all skip batch files so even if you run "which xxx" you never know what you're really running when you type xxx in the command line--is it xxx.exe [the thing reported from 'which'] or xxx.bat somewhere previous to this in the path? This executable clears up that ambiguity. | ||
|
||
Based originally on some code stolen from ruby gnuplot, extracted. | ||
|
||
To install: | ||
gem install rogerdpack-which_ruby | ||
gem install rogerdpack-whichrr | ||
then | ||
C:> which_ruby executable_name_here | ||
C:> whichr executable_name_here [extension optional] | ||
|