Skip to content

Instantly share code, notes, and snippets.

View UnnaturalTwilight's full-sized avatar

Cal UnnaturalTwilight

View GitHub Profile
@UnnaturalTwilight
UnnaturalTwilight / printenv-format.sh
Created February 24, 2026 02:00
Formated printing of environment variables
#!/bin/sh
# simlink this file into PATH with a name like 'echoenv' or smth
printenv |
sort | grep "^$1" --ignore-case |
bat --no-paging --style=grid,numbers
# replace above line with cat to make more portable
# print PATH
if [[ -z "$1" || "$1" = "PATH" || "$1" = "path" ]]; then

🇨🇦 🏳️‍⚧️