|
|
|
|
|
by boffinAudio
702 days ago
|
|
Where does it live? In a .bashrc I have to maintain? The point is, not having to create an alias or function, because the tool lives in history. None of these are that complicated that they deserve a dedicated shell script and chmod'ing, or presence in a cloneable repo, etc. |
|
Mind: I rely on shell history all the time, and I'm noting, admiring, and planning to adopt your commenting hack, it's ingenious.
But once a particular shell hack / one-liner / function has become sufficiently useful and proven, I'll typically add it to a shell function file (~/.bash_functions, sourced from ~/.bash_profile or ~/.bashrc), or my scripts directory (typically ~/.bin/ for personal hacks, /usr/local/bin/ if it's something I'll use from multiple accounts. Also park that under git and back it up / archive it somewhere or several somewheres.