Skip to content

Latest commit

 

History

History
executable file
·
87 lines (54 loc) · 1.79 KB

README.md

File metadata and controls

executable file
·
87 lines (54 loc) · 1.79 KB

prntenv

Utility to print out the names and values of the variables in the environment.

⚠️ Warning

Environment variables are case sensitive.

Installation

macOS and Linux

prntenv is available via Homebrew and as a downloadable binary from the releases page.

Homebrew

Install Upgrade
brew install jcouture/prntenv/prntenv brew upgrade prntenv

Windows

prntenv is available as a downloadable binary from the releases page.

Build from source

Alternatively, you can build it from source.

  1. Verify you have Go 1.20+ installed
~> go version

If Go is not installed, follow the instructions on the Go website

  1. Clone this repository
~> git clone https://github.com/jcouture/prntenv.git
~> cd prntenv
  1. Build prntenv uses just as command runner for a few handy commands shortcut.
~> just build

While the development version is a good way to take a peek at prntenv’s latest features before they get released, be aware that it may contains bugs. Officially released versions will generally be more stable.

Usage

Print the entire environment out:

~> prntenv

Without colorized output:

~> prntenv -no-color

Alphabetically sorted, by variable name:

~> prntenv -sort

Search for variables (default is case sensitive):

~> prntenv HOM

Search for variables (ignoring case):

~> prntenv -ignore-case Pat

License

prntenv is released under the MIT license. See LICENSE for details.