Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prevent same entry in $env.PATH (#1104)
* prevent same entry in $env.PATH if one extends PATH in `env.nu` and start a different shell before launching nu, one might start to collect the same path multiple times in PATH these lines construct the new value (based on home directory and the separator based on the os) * no need for env variable Co-authored-by: Antoine Stevan <44101798+amtoine@users.noreply.github.com> * simplification: make use of if .. in Co-authored-by: Antoine Stevan <44101798+amtoine@users.noreply.github.com> * remove mentions to `$env.my_path` --------- Co-authored-by: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Co-authored-by: amtoine <stevan.antoine@gmail.com>
- Loading branch information