set_env_perm
This crate allows you to permanently set environment variables
Based on set_env
Examples
// Check if DUMMY is set, if not set it to 1
// export DUMMY=1
check_or_set.expect;
// Append $HOME/some/cool/bin to $PATH
// export PATH= "$HOME/some/cool/bin:$PATH"Cancel changes
append.expect;
// Sets a variable without checking if it exists.
// Note you need to use a raw string literal to include ""
// export DUMMY="/something"
set.expect;
Usage
This crate simply appends to your .bash_profile or .bash_login or .profile
in that order.
It will create a .bash_profile file if none of the above are
found in your home directory.
ie. /Users/me/.bash_profile.
On windows, this crate will modify the HKEY_CURRENT_USER\Environment registry items