Add helper script to search for a prompt by name

This commit is contained in:
Joshua Aresty 2023-10-15 20:43:05 -07:00 committed by GitHub
parent 514989d563
commit eab7244941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
scripts/find-prompt Normal file
View File

@ -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 --with-nth 1 --delimiter "\t" --preview 'echo {2} | fold -s -w $(tput cols)'