From d46077a8033737547b294c2cabf09d6d28df497a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 8 Oct 2016 14:27:26 +0300 Subject: README update --- README.md | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4c07b4e..dacb368 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,8 @@ The complete list of utilities is given below. * [list_path] — List directories in your `PATH`. * [add_path] — Add directories to your `PATH`. * [remove_path] — Remove directories from your `PATH`. -* [set_env] — Set environment variables. -* [unset_env] — Unset environment variables. +* [set_env] — Assign values to environment variables. +* [unset_env] — Delete environment variables. Pass the `--help` flag to an utility to examine its detailed usage information. Some examples are given below. @@ -87,7 +87,7 @@ Continue? (y/n) y > ``` -Add "C:\test" to global `PATH`, skipping the confirmation prompt: +Add "C:\test" to the global `PATH`, skipping the confirmation prompt: ``` > add_path --global -y C:\test @@ -104,7 +104,7 @@ Saving variable 'PATH' to 'HKCU\Environment'... New value: C:\Users\Egor\AppData\Roaming\local\bin;C:\Users\Egor\AppData\Roaming\cabal\bin ``` -Remove "C:\test" from both current user's and global `PATH`s, skipping the +Remove "C:\test" from both current user's and the global `PATH`s, skipping the confirmation prompt: ``` @@ -113,23 +113,37 @@ confirmation prompt: ### set_env -Assign `bar` to the variable `foo` for all users: +Assign `bar` to the variable `foo` in current user's environment, skipping the +confirmation prompt: ``` -> set_env -g foo bar +> set_env -y foo bar +``` + +Assign `bar` to the variable `foo` in the global environment: + +``` +> set_env --global foo bar Saving variable 'foo' to 'HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'... Value: bar Continue? (y/n) y - -> ``` ### unset_env -Unset the variable `foo` for current user, skipping the confirmation prompt: +Delete the variable `foo` from current users's environment, skipping the +confirmation prompt: + +``` +> unset_env -y foo +``` + +Delete the variable `foo` from the global environment: ``` -> unset_env --yes foo +> unset_env --global foo +Deleting variable 'foo' from 'HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'... +Continue? (y/n) y ``` License -- cgit v1.2.3