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",
"venv" "venv"
], ],
// Can also be 'csh' and 'fish' // Can also be 'csh', 'fish', and `nushell`
"activate_script": "default" "activate_script": "default"
} }
} }

View file

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

View file

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