Skip to content

Commit b0ae7db

Browse files
committed
update readme
1 parent a28ca6e commit b0ae7db

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ The syntax of the environment variables rules in "rules.txt" is :
2222
ENVIRONMENT_VARIABLE OPERATION REGEXP
2323
```
2424

25-
Each rule is on a line. There are two operations "ADD" and "REMOVE". You can do multiple operations on a single environment variable.
25+
Each rule is on a line. There are three operations "APPEND", "PREPEND" and "REMOVE". You can do multiple operations on a single environment variable.
2626
For the regexp syntax check https://cplusplus.com/reference/regex/ECMAScript/
2727

2828
Example of rules removing python from the environment variables to use another version :
2929
```
3030
PATH REMOVE ;?[^;]*\\AppData\\Local\\Programs\\Python\\[^;]*
31-
PATH ADD C:\\MyApps\\Python310
32-
PATH ADD C:\\MyApps\\Python310\\Scripts
31+
PATH PREPEND C:\\MyApps\\Python310
32+
PATH PREPEND C:\\MyApps\\Python310\\Scripts
33+
PYTHONPATH REMOVE .*
3334
```
3435

3536
## License

0 commit comments

Comments
 (0)