[fix] For windows use Path instead of PATH for env vars in nushell

This commit is contained in:
fs0c131y
2023-11-02 12:28:46 +05:30
parent da83155804
commit b1d56f19a9
2 changed files with 27 additions and 22 deletions

View File

@@ -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"