Skip to content
Myr

Merge pull request #1799 from ritoban23/fix-powershell-completion-collision

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix PowerShell completion filename collision on Windows

authored by Thayne McCombs · committed by GitHub · parents b3e3977, a32e6a8 · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:Makefile+2 added-2 removed
7 unmodified lines
8$(EXE): Cargo.toml src/**/*.rs9 cargo build --profile $(PROFILE) --locked1011.PHONY: completions12completions: autocomplete/fd.bash autocomplete/fd.fish autocomplete/fd.ps1 autocomplete/_fd12completions: autocomplete/fd.bash autocomplete/fd.fish autocomplete/_fd.ps1 autocomplete/_fd1314comp_dir=@mkdir -p autocomplete1516autocomplete/fd.bash: $(EXE)
3 unmodified lines
20autocomplete/fd.fish: $(EXE)21 $(comp_dir)22 $(EXE) --gen-completions fish > $@2324autocomplete/fd.ps1: $(EXE)24autocomplete/_fd.ps1: $(EXE)25 $(comp_dir)26 $(EXE) --gen-completions powershell > $@2728autocomplete/_fd: contrib/completion/_fd
9 unmodified lines
modified:README.md+1 added-1 removed
743 unmodified lines
744745- 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.746- zsh: move the "_fd" file to somewhere on your fpath747- fish: Put fd.fish in ~/.config/fish/completions748- 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).749750## Maintainers751752- [sharkdp](https://github.com/sharkdp)
8 unmodified lines