awesome-chatgpt-prompts/scripts/find-prompt
2023-10-15 20:46:03 -07:00

3 lines
266 B
Bash
Executable File

#!/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)'