mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
Add Nushell support to venv activation
This commit is contained in:
parent
f011a3df52
commit
e5e63ed201
3 changed files with 3 additions and 1 deletions
|
@ -361,7 +361,7 @@
|
|||
".venv",
|
||||
"venv"
|
||||
],
|
||||
// Can also be 'csh' and 'fish'
|
||||
// Can also be 'csh', 'fish', and `nushell`
|
||||
"activate_script": "default"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -69,6 +69,7 @@ pub enum ActivateScript {
|
|||
Default,
|
||||
Csh,
|
||||
Fish,
|
||||
Nushell,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Default, Serialize, Deserialize, JsonSchema)]
|
||||
|
|
Loading…
Reference in a new issue