2 ms·
Yeah but the shell actually provides a mechanism that allows you to FORGET all the bullshit -- functions. I look up commands on the Internet, and then put them
by chubot 11y ago
Yeah but the shell actually provides a mechanism that allows you to FORGET all the bullshit -- functions.
I look up commands on the Internet, and then put them into single line shell script functions with a name. And then I write a comment about how it works, and check it into a git repo.
Then I never have to remember the exact invocation. I just type my nice function name, which is consistently named, and describes in my own words what the command does.
It's odd to me to see my coworkers and others very slowly coming up with a long command line, getting it wrong, very slowly correcting it, etc. I don't have time for that. I just grep my shell scripts directory for something close, copy and paste, edit it in my editor, and then run it.
It's very quick and puts no strain on the mind. Actually I find enjoyable to put my own names on arcane command line syntax.
- copperx 11y agoI find it depressing that after decades of working in the command line, this never occurred to me.