Skip to content

Commit

Permalink
fix(complete)!: Dont assume powershell on Windows
Browse files Browse the repository at this point in the history
We have issues open for other Windows shells, so this seems like a bad
idea.
  • Loading branch information
epage committed Aug 11, 2024
1 parent dcdfda7 commit 775688e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions clap_complete/src/dynamic/shells/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ impl Shell {
pub fn from_env() -> Option<Shell> {
if let Some(env_shell) = std::env::var_os("SHELL") {
Shell::from_shell_path(env_shell)
} else if cfg!(windows) {
Some(Shell::Powershell)
} else {
None
}
Expand Down

0 comments on commit 775688e

Please sign in to comment.