Envy

Build Status Documentation Status

Envy allows developers to simply create project-based development environments that your colleagues will envy.

Documentation

Installation

To install Envy, first clone the source code from Github

$ git clone https://github.com/jerluc/envy.git

Once you have the source code, cd envy then install either using pip

$ sudo pip install .

Or by using setuptools

$ python setup.py build
$ sudo python setup.py install

Usage Guide

Creating a new workspace

Before you can start to build out your development environment, you will need to first create a new workspace.

$ nv c
Creating workspace [my-env]

This command will create a .envy directory in the current working directory, where all future workspace tools will be configured and stored.

Once you have created a new workspace, you are now able to enter the workspace environment.

Entering a workspace

In order to use any tools or macros built in an existing workspace, you must first enter the workspace environment:

$ nv e
Entering workspace [my-env]; use "exit" to leave this workspace

This command must be executed from the root directory where the .envy configurationd directory is stored.

To simplify the process of creating a new workspace environment and then immediately entering it afterward, both c and e commands may also be invoked at the same time.

$ nv c e
Creating workspace [my-env]
Entering workspace [my-env]; use "exit" to leave this workspace

Recording a macro

One of the most useful features of Envy is the ability to easily record “macros” which are mini scripts to run common sequences of Bash commands. Once you have entered a workspace environment, you can record a macro using the record command (use the exit command to finish recording).

my-env ⚡ $ record my-macro
Recording macro "my-macro"; use "exit" to stop recording
my-env ⚡ $ echo OH
OH
my-env ⚡ $ echo HAI
HAI
my-env ⚡ $ exit
exit

Once recorded, you can then use the newly-recorded my-macro from your environment.

my-env ⚡ $ my-macro
OH
HAI

Macros are recorded and saved to the .envy/macros directory, where they can be modified, shared, or removed.

Destroying a workspace

Sometimes (but rarely) it is useful to be able to remove an existing workspace environment. For this task, the d command can be used.

$ nv d

Indices and tables