Skip to content

Instantly share code, notes, and snippets.

@sankitch
Created November 6, 2012 11:36
Show Gist options
  • Select an option

  • Save sankitch/4024162 to your computer and use it in GitHub Desktop.

Select an option

Save sankitch/4024162 to your computer and use it in GitHub Desktop.
#!/bin/sh
function find-and-open-by-percol() {
SELECT_DIR=$(find $1 -type f | percol --match-method migemo)
if [ $? -eq 0 ]
then
cygstart $SELECT_DIR
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment