mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2024-12-22 07:09:39 -08:00
Merge pull request #702 from jaresty/add-find-prompt-utility
Add find prompt utility
This commit is contained in:
commit
cdd8681c07
1 changed files with 3 additions and 0 deletions
3
scripts/find-prompt
Executable file
3
scripts/find-prompt
Executable 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 -1 -q "$1" --with-nth 1 --delimiter "\t" --preview 'echo {2} | fold -s -w $(tput cols)' | cut -d" " -f2
|
||||
Loading…
Add table
Add a link
Reference in a new issue