diff --git a/CHANGELOG.md b/CHANGELOG.md index 064edc8..d8be66e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,11 +11,12 @@ ## Bugfixes +- Use fd instead of fd.exe for Powershell completions (when completions are generated on windows) + ## Other - # v8.5.3 ## Bugfixes diff --git a/src/main.rs b/src/main.rs index 1173b1e..cdc48c7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,7 +97,7 @@ fn print_completions(shell: clap_complete::Shell) -> Result { let program_name = first_arg .as_ref() .map(Path::new) - .and_then(|path| path.file_name()) + .and_then(|path| path.file_stem()) .and_then(|file| file.to_str()) .unwrap_or("fd"); let mut cmd = Opts::command();