No project description provided
Project description
NVEXPO - Non-Volatile EXPOrt
nxexpo it's a simple tool to define environment variables on-the-fly and persisting them between shell sessions.
Dependencies
- Python 3.8
Dependencies to build
Dependencies to develop
Installation
To install from the source follow the commands:
$ poetry build
$ pip install dist/nvexpo*.whl
And add the follow line to your .bashrc
file:
eval "$(nvexpo init bash)"
Basic usage
The usage it's too simple. If you want to create a new env var into the current bash session use the command:
$ nx weird_variable=101
Then, you can close the current terminal or terminate the bash session, and when you start a new one, your env vars will still be there :sparkles:.
$ echo $weird_variable
101
Unset variables
To unset variables you need to use flag --unset
:
$ nx var1="hello world"
$ echo $var1
hello world
$ nx --unset var1
$ echo $var1
$ works!!
Why?
The main motivation for creating this tool was that in my work I like to have the Git branch I'm working on in $branch
, but it's annoying to have to create it every time I restart or close the terminal I was working on.
I could add it to .bashrc
directly, but I would have to do it every time I have to work on a new branch and it wasn't comfortable.
So now instead of having to type:
branch="super_useful_change"
I have to write:
nx branch="super_useful_change"
and that's it, no matter how many times I restart, my variable will be there.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nvexpo-0.1.1.tar.gz
.
File metadata
- Download URL: nvexpo-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.5.9-arch2-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e26837b68f0f8e3160e92a9cc40969dd7ec2af8961b6fe529bc3d260ee7814b3 |
|
MD5 | 1e47bffbc5e5c1eacc465c6c36fffad9 |
|
BLAKE2b-256 | 92f291c4e93b71e18bcf02ccf11cd06e8e7ae3014d0deab89ade8d3bb058f1c9 |
File details
Details for the file nvexpo-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: nvexpo-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.5.9-arch2-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf986ee4662886ffd782ca8bc4872c10be8900892e68e7acd6ec4bcac1bfca32 |
|
MD5 | d767005f2bd667b94dd5f8cc8e51e3a2 |
|
BLAKE2b-256 | 8ddce64df37cb5caf8a2934482c1eff9c1d96f0621dc65abc80bcee9dbbf4da3 |