From 4fae41c85b68bee70d0a290645b2263d2e2cd165 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Sun, 11 Aug 2024 12:21:49 -0300 Subject: [PATCH] radio: files: .local/bin: Add prettify-sexp --- home-environments/radio/files/.local/bin/prettify-sexp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 home-environments/radio/files/.local/bin/prettify-sexp diff --git a/home-environments/radio/files/.local/bin/prettify-sexp b/home-environments/radio/files/.local/bin/prettify-sexp new file mode 100755 index 0000000..e970094 --- /dev/null +++ b/home-environments/radio/files/.local/bin/prettify-sexp @@ -0,0 +1,10 @@ +#!/usr/bin/env -S guile +!# + +(use-modules (ice-9 pretty-print) + (ice-9 match)) + +(pretty-print + (match (command-line) + [(_) (read)] + [(_ str) (with-input-from-string str read)]))