Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent same entry in $env.PATH #1104

Merged
merged 4 commits into from
Oct 8, 2023
Merged

prevent same entry in $env.PATH #1104

merged 4 commits into from
Oct 8, 2023

Commits on Oct 8, 2023

  1. 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)
    joergsch committed Oct 8, 2023
    Configuration menu
    Copy the full SHA
    93026fd View commit details
    Browse the repository at this point in the history
  2. no need for env variable

    Co-authored-by: Antoine Stevan <44101798+amtoine@users.noreply.github.com>
    joergsch and amtoine committed Oct 8, 2023
    Configuration menu
    Copy the full SHA
    25b7b9b View commit details
    Browse the repository at this point in the history
  3. simplification: make use of if .. in

    Co-authored-by: Antoine Stevan <44101798+amtoine@users.noreply.github.com>
    joergsch and amtoine committed Oct 8, 2023
    Configuration menu
    Copy the full SHA
    6259575 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7dc8109 View commit details
    Browse the repository at this point in the history