What is Envz?
During the course of normal production development we all tend to write a bunch of shell scripts and other useful command line utilities that help us out. Usually the end up being a bunch of one offs or stored in one mega .zshrc file. However, there’s something to be said about having a small framework to share environment utilities and to use as a jump off to “version” a shared set of utilities with team mates.
With that in mind I’ve been building out a small zsh bootstrapper that builds on tools that I like and use (like yadr) and gives a way to add pluggable team modules into it. All a pluggable module is is a sym link to another directory that auto loads .sh files on shell start. And while it sounds like a small thing, it’s actually really nice to be able to have different teams version different sets of shell scripts and be able to easily link and share them with environments.
For example, let me make a quick folder called
team1, put in a dummy shell script and link it to my environment:
Notice how our function exists immediately after linking the env!
To unload it:
You can imagine now having multiple git repos that you want to share as team specific utilities or bootstrapping. All someone has to do is check out your folder and add it to their environment.
Things EnvZ gives you
- Opinionated bootstrap (installs python, pip, checks for yadr, gives you a default gui editor [atom])
- Simplifies reloading your .zsh environment and autocompletes
- Lets you break up your environment into multiple folders or git repos and link them to yours with simple commands with autocomplete
- Defines a clean place to add zsh completion files
- Auto sets up github enterprise to work with
huband provides json command line parsing with
- Auto installs cask if its not there
- A hook into your teammates source directory. If everyone uses EnvZ then you can be assured that $SRC_DIR is set
- Easier pull request autocomplete (via the
prcommand, the current hub one is broken) that lets you pick the target branch and a message
I like yadr and other opinionated setups because they get you up and running fast, but I always found that once you are up and running those bootstrappers didn’t thin about how to share your configurations and other utilities. With a team of 3 or 4 people you may want to have some scripts for you, some for the team, and maybe some for side projects that you can have people bootload up.
If thats the case, EnvZ is a good option. It’s lightweight, easy to change, and easy to load up new envs with.