aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.md50
1 files changed, 25 insertions, 25 deletions
diff --git a/README.md b/README.md
index 3c63c24..6356511 100644
--- a/README.md
+++ b/README.md
@@ -36,27 +36,27 @@ Usage
The complete list of utilities is given below.
-* [list_path] — List directories in your `PATH`.
-* [add_path] — Add directories to `PATH`.
-* [remove_path] — Remove directories from `PATH`.
-* [set_env] — Assign values to environment variables.
-* [unset_env] — Delete environment variables.
+* [paths] — List directories in your `PATH`.
+* [addpath] — Add directories to `PATH`.
+* [delpath] — Remove directories from `PATH`.
+* [setenv] — Assign values to environment variables.
+* [delenv] — Delete environment variables.
Pass the `--help` flag to an utility to examine its detailed usage information.
Some examples are given below.
-[list_path]: #list_path
-[add_path]: #add_path
-[remove_path]: #remove_path
-[set_env]: #set_env
-[unset_env]: #unset_env
+[paths]: #paths
+[addpath]: #addpath
+[delpath]: #delpath
+[setenv]: #setenv
+[delenv]: #delenv
-### list_path
+### paths
List directories in your `PATH`:
```
-> list_path
+> paths
C:\Program Files\Haskell\bin
C:\Program Files\Haskell Platform\8.0.1\lib\extralibs\bin
C:\Program Files\Haskell Platform\8.0.1\bin
@@ -68,17 +68,17 @@ C:\Users\Egor\AppData\Roaming\cabal\bin
Only list missing directories in your `PATH`:
```
-> list_path --missing
+> paths --missing
C:\Users\Egor\AppData\Roaming\cabal\bin
...
```
-### add_path
+### addpath
Add "C:\test" to current user's `PATH`:
```
-> add_path C:\test
+> addpath C:\test
Saving variable 'PATH' to 'HKCU\Environment'...
Old value: C:\Users\Egor\AppData\Roaming\local\bin;C:\Users\Egor\AppData\Roaming\cabal\bin
New value: C:\Users\Egor\AppData\Roaming\local\bin;C:\Users\Egor\AppData\Roaming\cabal\bin;C:\test
@@ -88,15 +88,15 @@ Continue? (y/n) y
Add "C:\test" to the global `PATH`, skipping the confirmation prompt:
```
-> add_path --global -y C:\test
+> addpath --global -y C:\test
```
-### remove_path
+### delpath
Remove "C:\test" from current user's `PATH`:
```
-> remove_path C:\test
+> delpath C:\test
Saving variable 'PATH' to 'HKCU\Environment'...
Old value: C:\Users\Egor\AppData\Roaming\local\bin;C:\Users\Egor\AppData\Roaming\cabal\bin;C:\test
New value: C:\Users\Egor\AppData\Roaming\local\bin;C:\Users\Egor\AppData\Roaming\cabal\bin
@@ -106,40 +106,40 @@ Remove "C:\test" from both current user's and the global `PATH`s, skipping the
confirmation prompt:
```
-> remove_path --global -y C:\test
+> delpath --global -y C:\test
```
-### set_env
+### setenv
Assign `bar` to the variable `foo` in current user's environment, skipping the
confirmation prompt:
```
-> set_env -y foo bar
+> setenv -y foo bar
```
Assign `bar` to the variable `foo` in the global environment:
```
-> set_env --global foo bar
+> setenv --global foo bar
Saving variable 'foo' to 'HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'...
Value: bar
Continue? (y/n) y
```
-### unset_env
+### delenv
Delete the variable `foo` from current users's environment, skipping the
confirmation prompt:
```
-> unset_env -y foo
+> delenv -y foo
```
Delete the variable `foo` from the global environment:
```
-> unset_env --global foo
+> delenv --global foo
Deleting variable 'foo' from 'HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'...
Continue? (y/n) y
```