Last active
August 29, 2015 14:03
-
-
Save gabrielmiller/40d4141f6a0f7c4ec353 to your computer and use it in GitHub Desktop.
Wrapper to the platinum searcher (https://github.com/monochromegane/the_platinum_searcher)
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
#!/bin/bash | |
workdir="" # <<< PWD of project to default search | |
if [ "$1" != "" ] && [ "$2" != "" ]; then | |
$GOPATH/src/github.com/monochromegane/the_platinum_searcher/the_platinum_searcher -i -C 3 "$1" "$2" | |
else | |
if [ "$1" != "" ]; then | |
$GOPATH/src/github.com/monochromegane/the_platinum_searcher/the_platinum_searcher -i -C 3 "$1" $workdir | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment