3 ms·
This still doesn't help me give my scripts meaningful names ;) I tend to use rg on my ~/bin and search for a string I hopefully put in the script in a comment
by hiccuphippo 4y ago
This still doesn't help me give my scripts meaningful names ;)
I tend to use rg on my ~/bin and search for a string I hopefully put in the script in a comment somewhere. Maybe sd could add an apropos feature.
- unsafecast 4y agoFrom what I can tell, sd has a feature that reads a comment or something from your scripts and displays them in the tab completion. So 'sd <tab>' would show a summary of commands and apropos.
- ilyt 4y agoOne idea would be to have a script that runs every one of them with --help and indexes the result
- hiccuphippo 4y agoIt could also index comments at the top of the file, for those of us not diligent enough to add a --help flag
- ilyt 4y agoI just have template for all the boilerplate around cmdline handling for whatever I write in.
- bombolo 4y agoYou think random scripts I just made to put in ~/bin support --help?
- ilyt 4y agoYou haven't put anything else useful for info in it either so no difference for you