prompt

My shell prompt
git clone https://hhvn.uk/prompt
git clone git://hhvn.uk/prompt
Log | Files | Refs

commit ee3befdb660177ab4d09c81531e28d93fc8e69f9
parent b2141dda0f4f244f6c73e4366e43fdd7c2d7ca69
Author: hhvn <dev@hhvn.uk>
Date:   Thu, 18 Apr 2024 22:34:33 +0100

Panic() on lack of error codes on argv

Diffstat:
Mfn.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/fn.go b/fn.go @@ -15,6 +15,9 @@ func FnExitStatus(ch chan string) { defer close(ch) status := os.Args[1:] + if len(status) == 0 { + panic("where are my exit codes?? *grumble*") + } if cnf.Smallpipe { allzero := true