8 ms·
I wrote one to help with creating command line commands. It just hits openai api with a prompt asking for just a code block to run on bash + whatever is passed
by bagels 2y ago
I wrote one to help with creating command line commands. It just hits openai api with a prompt asking for just a code block to run on bash + whatever is passed in, and then it prints the command out. I wrote it because I can never remember all the weird command args for all the tools.
$ bashy find large files over 10 gb
find / -type f -size +10G
- QuiDortDine 2y agoDo you have a followup command to execute the suggested command?
- sdf4j 2y ago$ bashy evaluate the previous command output
- bagels 2y agoNo, I want to review or tweak them, just in case it's trying to do something bad. It's usually pretty good though.
- godelski 2y agoIf you use zsh and are willing to source your scripts you can do print -z $command And the command will appear on your cli as if you had written it. I don't think you can do this in bash. Interestingly, this is something that seems quite difficult to both google and ask GPT for help. Both get confused and are thinking different questions are being asked. Probably because there are similar more common questions but the subtleties of possible wordings makes it difficult to differentiate.