[fix] For windows use Path instead of PATH for env vars in nushell
This commit is contained in:
@@ -74,7 +74,12 @@ if ($os | str contains Linux) {
|
||||
$env.PATH = ($env.PATH | split row (char esep) | prepend '/home/linuxbrew/.linuxbrew/bin')
|
||||
}
|
||||
|
||||
$env.PATH = ($env.PATH | prepend $"($env.FNM_MULTISHELL_PATH)/bin")
|
||||
$env.PATH = ($env.PATH | prepend $"($env.HOME)/local/bin")
|
||||
if ($os | str contains Windows) {
|
||||
$env.Path = ($env.Path | prepend $"($env.FNM_MULTISHELL_PATH)/bin")
|
||||
} else {
|
||||
$env.PATH = ($env.PATH | prepend $"($env.FNM_MULTISHELL_PATH)/bin")
|
||||
$env.PATH = ($env.PATH | prepend $"($env.HOME)/local/bin")
|
||||
}
|
||||
|
||||
$env.EDITOR = "nvim"
|
||||
$env.VISUAL = "nvim"
|
||||
|
||||
Reference in New Issue
Block a user