8000 GitHub - Southclaws/fnm-nushell: fnm -> this -> load-env = use fnm in nushell
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Southclaws/fnm-nushell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

fnm-nushell

fnm -> this -> load-env = use fnm in nushell

This is just a quick, simple, non-hacky-script solution for Schniz/fnm#463

usage

Install:

go install github.com/Southclaws/fnm-nushell@latest

Load into shell:

fnm env --shell power-shell | fnm-nushell | from json | load-env

Breakdown:

  1. we use powershell because it's the easiest to parse without surprises
fnm env --shell power-shell
  1. fnm-nushell just turns this into JSON
fnm env --shell power-shell | fnm-nushell
  1. turn that json into a nushell table
fnm env --shell power-shell | fnm-nushell | from json
  1. load that data table as env vars
fnm env --shell power-shell | fnm-nushell | from json | load-env

About

fnm -> this -> load-env = use fnm in nushell

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0