Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Last active June 24, 2021 10:30
Show Gist options
  • Save ttscoff/c9b2854010625ed11b54a8f2a4c0c901 to your computer and use it in GitHub Desktop.
Save ttscoff/c9b2854010625ed11b54a8f2a4c0c901 to your computer and use it in GitHub Desktop.
Fish function for using fuzzy command line searching of your gists
function findgist --description 'select gist from list and display contents'
# requires fzf (brew install fzf) and gist (brew install gist)
gist -r (gist -l | awk -F/ '{print $NF}' | fzf --layout="reverse" -q "$argv" | awk '{ print $1 }')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment