Hacker GitHub

← All repos

rollcat/etc

View on GitHub ↗ ★ 0 Go

Things that are too small to keep in a separate repo, but too important not to version them.

3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2023-08-10 · latest 2024-01-26

Mentions per year 3 mentions · busiest year 2023 (2)
20082026
  1. Since this is now a share your prompt thread, here's mine: https://github.com/rollcat/etc/tree/master/cmd/prompter It's quite portable (didn't test on Windows though); ~170 lines of Go; no dependencies outside of stdlib; calls no external…
  2. …wasting precious cycles on shelling out to the git command) to find the current branch we're on: https://github.com/rollcat/etc/blob/b2fd739/cmd/prompter/mai...
    comment by rollcat · 2023-10-07 · in What is in that .git directory?
  3. …a fallback shell one-liner, without any of the fanciness like displaying the current git branch: https://github.com/rollcat/etc/tree/master/cmd/prompter#i-li...
    comment by rollcat · 2023-08-10 · in Pure Bash Bible (2018)