Re:Show HN: Shite: The little hot-reloadin' static site make...
by adityaathalye on Monday January 23, 2023 @01:48PM
(#34493150)
Thank you for the review! If only you knew of all the glorious plans :,)
Apropos your note, may I direct you to "Unrealised Ambitions" in the README https://github.com/adityaathalye/shite#unrealised-ambitions
Re:Show HN: Shite: The little hot-reloadin' static site make...
by appletrotter on Monday January 23, 2023 @04:28PM
(#34495333)
> Apropos your note, may I direct you to "Unrealised Ambitions" in the README https://github.com/adityaathalye/shite#unrealised-ambitions
It doesn't have to be an unrealized ambition with a simple `mv` command ;)
Re:Show HN: Shite: The little hot-reloadin' static site make...
by adityaathalye on Monday January 23, 2023 @02:12PM
(#34493479)
Sidelight: I tend to use functions as Unix tools a lot more than scripts as Unix tools. No need for PATH twiddling, file ownership/permission setting, among other things. I wrote about it here: https://www.evalapply.org/posts/shell-aint-a-bad-place-to-fp...
Re:Show HN: Shite: The little hot-reloadin' static site make...
by freedomben on Tuesday January 24, 2023 @11:33AM
(#34505917)
I do this too! Bash functions are incredible. They have to be the most awesome under-used function (pun intended) I know of
Re:Show HN: Shite: The little hot-reloadin' static site make...
by adityaathalye on Tuesday January 24, 2023 @01:21PM
(#34507670)
Ah a fellow person of culture :D
Maybe you will enjoy my "bash-toolkit" repo: https://github.com/adityaathalye/bash-toolkit which I've dubbed my "Swiss Army Toolkit" of functions-as-cmd-line-tools and useful-to-me patterns.
Which reminds me, I've collected more and should update the repo!
Re:Show HN: Shite: The little hot-reloadin' static site make...
by TechBro8615 on Tuesday January 24, 2023 @12:54PM
(#34507267)
I like this as a user but it always throws me off when I see it in a Git repo, where I'd prefer the .sh extension to hint at what's inside the file.
Re:Show HN: Shite: The little hot-reloadin' static site make...
by adityaathalye on Tuesday January 24, 2023 @01:36PM
(#34507925)
Indeed, this is why I retained the `.sh`.
If it were designed as a proper userspace tool (it is not, and may never be), I might have dropped the file extension. But I might also have chosen to keep the `.sh`, and create an alias instead, during install. That way I get to have both micro-conveniences.
Re:Show HN: Shite: The little hot-reloadin' static site make...
by andrewmcwatters on Tuesday January 24, 2023 @03:23PM
(#34509725)
For reference, I think npm does this too, and IIRC, they just symlink the utility name.
Then you can `shite(1)` anywhere you want after you put the command in your PATH and feel like a proper `git(1)`.