get/set os environment variables in rust.
Build envedit with cargo build --release and move the executable from
target/release/envedit(.exe) to a directory with environment access. After this
you can use envedit from the command line:
envedit set key value
envedit get keyNote: if you are in china and using scoop + my scoop_bucket_cn. it may be good for you:
# use my bucket of scoop for China and name it as zero
scoop bucket add zero https://github.com/ymc-github/scoop_bucket_cn
# install envedit from bucket named zero
scoop install zero/enveditset "OLLAMA_MODELS" to "G:\data\LLM":
envedit set OLLAMA_MODELS "G:\data\LLM"to get "OLLAMA_MODELS" 's value
envedit get OLLAMA_MODELSenvedit uses the following libraries:
- winres - Create and set windows icons and metadata for executables.
envedit is released under the MIT License:
See LICENSE.txt for a full copy of the license text.