Add Nushell support to venv activation

This commit is contained in:
Joseph T. Lyons 2023-10-01 23:38:30 -04:00
parent f011a3df52
commit e5e63ed201
3 changed files with 3 additions and 1 deletions

View File

@ -361,7 +361,7 @@
".venv",
"venv"
],
// Can also be 'csh' and 'fish'
// Can also be 'csh', 'fish', and `nushell`
"activate_script": "default"
}
}

View File

@ -84,6 +84,7 @@ impl Project {
terminal_settings::ActivateScript::Default => "activate",
terminal_settings::ActivateScript::Csh => "activate.csh",
terminal_settings::ActivateScript::Fish => "activate.fish",
terminal_settings::ActivateScript::Nushell => "activate.nu",
};
for virtual_environment_name in settings.directories {

View File

@ -69,6 +69,7 @@ pub enum ActivateScript {
Default,
Csh,
Fish,
Nushell,
}
#[derive(Clone, Debug, Default, Serialize, Deserialize, JsonSchema)]