torrent/nushell/tools/mypaths.nu
2024-01-13 13:01:54 +03:00

29 lines
797 B
Plaintext

export def init [] {
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}
}
# runonce once 'lls' { ls / } --reset true
# 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}