From eab7244941ef14bdac78262fc637ab24d61025fb Mon Sep 17 00:00:00 2001 From: Joshua Aresty Date: Sun, 15 Oct 2023 20:43:05 -0700 Subject: [PATCH] Add helper script to search for a prompt by name --- scripts/find-prompt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 scripts/find-prompt diff --git a/scripts/find-prompt b/scripts/find-prompt new file mode 100644 index 0000000..f2ff916 --- /dev/null +++ b/scripts/find-prompt @@ -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)' \ No newline at end of file