Hacker GitHub

← All repos

SixArm/unix-shell-script-kit

View on GitHub ↗ ★ 61 Shell

Unix shell script kit with many utility functions, exit codes, color codes, assertion texting, and POSIX helpers.

4 mentions on Hacker News by 1 person: 2 stories, 2 comments · first 2023-04-05 · latest 2026-02-01

Mentions per year 4 mentions · busiest year 2026 (2)
20082026
  1. …{ >&2 printf %s%s%s\\n "${STDERR_COLOR_START:-}" "$*" "${STDERR_COLOR_STOP:-}" } Source: https://github.com/sixarm/unix-shell-script-kit The source also has functions for nocolor, and detecting a dumb terminal setup that doesn't use…
  2. …shift ; >&2 printf %s\\n "$*" ; exit "$n" } Many more shell script exit codes and helper functions: https://github.com/SixArm/unix-shell-script-kit/blob/main/un...
    comment by jph · 2024-03-02 · in Bash Debugging