Skip to content

Commit

Permalink
Merge pull request #702 from jaresty/add-find-prompt-utility
Browse files Browse the repository at this point in the history
Add find prompt utility
  • Loading branch information
f committed Nov 9, 2023
2 parents 46b73c6 + 3ee3610 commit cdd8681
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/find-prompt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

curl -s https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv | tail +2 | ruby -rcsv -e 'CSV.parse(STDIN.read) {|row| puts row.join("\t")}' | fzf -1 -q "$1" --with-nth 1 --delimiter "\t" --preview 'echo {2} | fold -s -w $(tput cols)' | cut -d" " -f2

0 comments on commit cdd8681

Please sign in to comment.