Skip to content

Commit 47cedbb

Browse files
authored
Merge pull request #1799 from ritoban23/fix-powershell-completion-collision
Fix PowerShell completion filename collision on Windows
2 parents b3e3977 + a32e6a8 commit 47cedbb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $(EXE): Cargo.toml src/**/*.rs
99
cargo build --profile $(PROFILE) --locked
1010

1111
.PHONY: completions
12-
completions: autocomplete/fd.bash autocomplete/fd.fish autocomplete/fd.ps1 autocomplete/_fd
12+
completions: autocomplete/fd.bash autocomplete/fd.fish autocomplete/_fd.ps1 autocomplete/_fd
1313

1414
comp_dir=@mkdir -p autocomplete
1515

@@ -21,7 +21,7 @@ autocomplete/fd.fish: $(EXE)
2121
$(comp_dir)
2222
$(EXE) --gen-completions fish > $@
2323

24-
autocomplete/fd.ps1: $(EXE)
24+
autocomplete/_fd.ps1: $(EXE)
2525
$(comp_dir)
2626
$(EXE) --gen-completions powershell > $@
2727

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ your shell, you may need to source the file as well:
745745
- bash: you will need to source the fd.bash file in your ~/.bashrc file. Or put it in a directory of files that are all sourced.
746746
- zsh: move the "_fd" file to somewhere on your fpath
747747
- fish: Put fd.fish in ~/.config/fish/completions
748-
- powershell: Source the fd.ps1 file from one of the files in the [profile scripts locations](https://learn.microsoft.com/en-us/powershell/scripting/learn/shell/creating-profiles?view=powershell-7.5).
748+
- powershell: Source the _fd.ps1 file from one of the files in the [profile scripts locations](https://learn.microsoft.com/en-us/powershell/scripting/learn/shell/creating-profiles?view=powershell-7.5).
749749

750750
## Maintainers
751751

0 commit comments

Comments
 (0)