3 ms·
This looks really cool. The number of times I've had to google things like "delete all files that were created before a certain date but not if they have certa
by quartz 4y ago
This looks really cool. The number of times I've had to google things like "delete all files that were created before a certain date but not if they have certain characters or are a certain extension" is uncountable.
Kind of wish the command was just "genie" though. Suppose I could ask it how to change the name.
- bamboozled 4y agoLooks cool? Won’t be that cool when it decides to delete random shit off your computer.
- kris_wayton 4y agoI suppose you would have to know to run "list all files that..." prior to "delete all files that...".
- jacquesm 4y agoThat's just asking for it. A nice little model reload in the middle of those two statements, or maybe the difference between 'delete' and 'list' is enough to enable 'evil mode' which then does something entirely different. I'd list the files to a file and then process that file after checking for errors in a way that doesn't allow for new errors to be introduced. Better still I'd ask it to generate a command which lists the files, look it over, execute it and if that lists the right files manually change the 'ls' to 'rm'. Otherwise you're at the mercy of the gods. Who are like sysops: subtle and quick to anger.
- dcastm 4y agoIt won’t run any command unless you explicitly tell it to do so. But yes I’d also like to provide some sort of warning if a certain command “looks dangerous”. I’ve been thinking about what's the best approach.
- woolcap 4y agoAsk GPT-3 for its opinion, "does this command look potentially dangerous?"
- dcastm 4y agoThanks! I thought of using a shorter name but the ones I liked were already used in pypi. You can always add `alias genie=shell-genie` to your .bashrc or .zshrc file :)
- jacquesm 4y agoSuggest renaming it to 'please'.
- phonescreen_man 4y agoKind of wish the command was just "genie" though Rename the binary? Or create an alias in your shell profile