Shopify / shadowenv

reversible directory-local environment variable manipulations
https://shopify.github.io/shadowenv/
MIT License
396 stars 18 forks source link

`env/prepend-to-pathlist` doesn't undo when it adds a duplicate #103

Open lugray opened 2 years ago

lugray commented 2 years ago
$ export VAR=a:b:c:d
$ cat inner/.shadowenv.d/500_custom.lisp
(env/prepend-to-pathlist "VAR" "c")
$ cd inner
activated shadowenv
$ echo $VAR
c:a:b:c:d
$ cd ..
$ echo $VAR
c:a:b:c:d

Undoing this properly would also require similar richer undo data including indexes as described in #16.