Created
October 30, 2012 18:45
-
-
Save sankitch/3982188 to your computer and use it in GitHub Desktop.
percolでGISTY_DIRの絞り込み&cd
This file contains hidden or 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
| 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