nuscripts/examples/paths.nu
2024-01-13 13:50:06 +03:00

18 lines
413 B
Plaintext

let envpath = $env.PATH
| where ($it | str contains -n '.apple.security')
| where ($it | str contains -n 'Cryptexes')
| where ($it | str contains -n 'dotnet')
| where ($it | str contains -n -i 'gpg')
| append ($env.HOME | path join .cargo/bin)
| append ($env.HOME | path join hero/bin)
| uniq
| sort
load-env {PATH:$envpath}
# -i means case insensitive
# -n means not