Created
March 22, 2023 16:06
-
-
Save lucperkins/49b7b7e876b9426ef6f7dea70feb900b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parse the __nu_packages environment variable string, where each | |
# package path is separate by a space, and convert to a list | |
let packages = ($env.__nu_packages | split row (char space)) | |
# Convert the list to a colon-separated string | |
let $packagesPath = ( | |
$packages | |
| each { |pkg| $"($pkg)/bin" } | |
| str collect (char esep) | |
) | |
# Set the PATH | |
let-env PATH = $packagesPath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment