DEV Community

Cover image for Master your bash/zsh environment with Envirou
Sverrir Á. Berg
Sverrir Á. Berg

Posted on

1

Master your bash/zsh environment with Envirou

Years ago I created a simple utility to help me manage my environment variables - I wanted a quick way to view what was was my current configuration. What python virtual env am I using or what AWS profile is currently active?
This replaces env | grep FOO and echo $PATH completely for me since it tells me what profile is active.

https://github.com/sverrirab/envirou

Years later I added the possibility to modify the environment as well so now I can simply do ev prod and then ev dev to quickly switch between configurations. ev then tells me what profile is active and shows me all the important ones (filters out uninteresting variables such as $TMP or $LC_CTYPE).

Please try it out and see if can simplify your workflow!

GitHub logo sverrirab / envirou

Manage your shell environment with Envirou

envirou - View and manage your shell environment

Build Status

Envirou (ev) helps you to quickly configure your shell environment Stop writing export statemenents and maintaining custom shell scripts.

Example after minimal configuration Simple View

Demo session

asciicast

Key hightlights

  • Works with any other tool - just views and optionally sets environment variables.
  • Shows instantly what profiles are active (dev AWS profile above).
  • Compact output (replaces $HOME with ~ and underscores paths for readability).
  • Hides all irrelevant variables such as TMPDIR, LSCOLORS etc, etc.
  • Simple to customize.
  • Works on Mac / Linux using bash and zsh.
  • Fully standalone with no dependencies - uses any python 2.7 or 3.4+ you have installed.
  • Command completion support for bash and zsh.
  • Includes oh-my-zsh theme.
  • New: Windows support.

Quickstart

Using Mac OS X or Linux

$ curl -o- https://raw.githubusercontent.com/sverrirab/envirou/master/curl_install.sh | bash

Using Windows

  1. Make sure you have python installed (py should work, 3.7+ recommended).

Billboard image

The fastest way to detect downtimes

Join Vercel, CrowdStrike, and thousands of other teams that trust Checkly to streamline monitoring.

Get started now

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay