Skip to content

Instantly share code, notes, and snippets.

@sankitch
Created October 30, 2012 18:45
Show Gist options
  • Select an option

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

Select an option

Save sankitch/3982188 to your computer and use it in GitHub Desktop.
percolでGISTY_DIRの絞り込み&cd
function change-directory-gisty-by-percol() {
SELECTED_GIST=$(gisty list | awk /:/ | percol --match-method migemo | awk -F ':' '{ print $1 }')
cd $GISTY_DIR/$SELECTED_GIST
}
alias g='change-directory-gisty-by-percol'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment