Skip to content

Instantly share code, notes, and snippets.

@gabrielmiller
Last active August 29, 2015 14:03
Show Gist options
  • Save gabrielmiller/40d4141f6a0f7c4ec353 to your computer and use it in GitHub Desktop.
Save gabrielmiller/40d4141f6a0f7c4ec353 to your computer and use it in GitHub Desktop.
Wrapper to the platinum searcher (https://github.com/monochromegane/the_platinum_searcher)
#!/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