Home - Main - git - bsky

Shell rc File Comments

2026-08-05

I’ve added a bunch of comments to my ~/.kshrc file, to make it a bit more obvious what stuff does, and also for my own purpose, to keep track of what I actually use.

I’m planning to go through all my scripts as well and add comments where it’s not self-explanatory.

I go back and forth on commenting scripts/programs, I know people argue that code should be self documenting, but, especially with shell scripts, that isn’t always the case. One line of shell script might have 6 different commands being piped. I think a small comment to explain what the hell is going on is fine.