File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 - #1667
1616 - #1813
1717
18+ - Fix completions for alias ` fdfind ` in deb release, see #1888 (@skane-lukas )
19+
1820## Changes
1921
2022- Minimum required rust version has been increased to 1.90.0. Notably, this means dropping fully support for intel Mac and Windows 7.
Original file line number Diff line number Diff 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 autocomplete/_fdfind autocomplete/fdfind.bash autocomplete/fdfind.fish
1313
1414comp_dir =@mkdir -p autocomplete
1515
@@ -29,9 +29,24 @@ autocomplete/_fd: contrib/completion/_fd
2929 $(comp_dir )
3030 cp $< $@
3131
32+ autocomplete/_fdfind : contrib/completion/_fdfind
33+ $(comp_dir )
34+ cp $< $@
35+
36+ autocomplete/fdfind.bash : contrib/completion/fdfind.bash
37+ $(comp_dir )
38+ cp $< $@
39+
40+ autocomplete/fdfind.fish : contrib/completion/fdfind.fish
41+ $(comp_dir )
42+ cp $< $@
43+
3244install : $(EXE ) completions
3345 install -Dm755 $(EXE ) $(DESTDIR )$(bindir ) /fd
3446 install -Dm644 autocomplete/fd.bash $(DESTDIR ) /$(datadir ) /bash-completion/completions/$(exe_name )
3547 install -Dm644 autocomplete/fd.fish $(DESTDIR ) /$(datadir ) /fish/vendor_completions.d/$(exe_name ) .fish
36- install -Dm644 autocomplete/_fd $(DESTDIR ) /$(datadir ) /zsh/site-functions/_$(exe_name )
48+ install -Dm644 autocomplete/_fd $(DESTDIR ) /$(datadir ) /zsh/site-functions/_fd
49+ install -Dm644 autocomplete/fdfind.bash $(DESTDIR ) /$(datadir ) /zsh/site-functions/fdfind.bash
50+ install -Dm644 autocomplete/fdfind.fish $(DESTDIR ) /$(datadir ) /zsh/site-functions/fdfind.fish
51+ install -Dm644 autocomplete/_fdfind $(DESTDIR ) /$(datadir ) /zsh/site-functions/_fdfind
3752 install -Dm644 doc/fd.1 $(DESTDIR ) /$(datadir ) /man/man1/$(exe_name ) .1
Original file line number Diff line number Diff line change 1+ #compdef fdfind
2+ _fd "$@"
Original file line number Diff line number Diff line change 1+ # Source fd completions
2+ source /usr/share/bash-completion/completions/fd
3+
4+ if [[ " ${BASH_VERSINFO[0]} " -eq 4 && " ${BASH_VERSINFO[1]} " -ge 4 || " ${BASH_VERSINFO[0]} " -gt 4 ]]; then
5+ complete -F _fd -o nosort -o bashdefault -o default fdfind
6+ else
7+ complete -F _fd -o bashdefault -o default fdfind
8+ fi
Original file line number Diff line number Diff line change 1+ complete -c fdfind --wraps fd
Original file line number Diff line number Diff line change @@ -57,11 +57,12 @@ install -Dm644 "LICENSE-APACHE" "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/LICE
5757install -Dm644 " CHANGELOG.md" " ${DPKG_DIR} /usr/share/doc/${DPKG_BASENAME} /changelog"
5858gzip -n --best " ${DPKG_DIR} /usr/share/doc/${DPKG_BASENAME} /changelog"
5959
60- # Create symlinks so fdfind can be used as well:
60+ # Create symlink and completions so fdfind can be used as well:
6161ln -s " /usr/bin/fd" " ${DPKG_DIR} /usr/bin/fdfind"
62- ln -s ' ./fd.bash' " ${DPKG_DIR} /usr/share/bash-completion/completions/fdfind"
63- ln -s ' ./fd.fish' " ${DPKG_DIR} /usr/share/fish/vendor_completions.d/fdfind.fish"
64- ln -s ' ./_fd' " ${DPKG_DIR} /usr/share/zsh/vendor-completions/_fdfind"
62+
63+ install -Dm644 ' autocomplete/fdfind.bash' " ${DPKG_DIR} /usr/share/bash-completion/completions/fdfind"
64+ install -Dm644 ' autocomplete/fdfind.fish' " ${DPKG_DIR} /usr/share/fish/vendor_completions.d/fdfind.fish"
65+ install -Dm644 ' autocomplete/_fdfind' " ${DPKG_DIR} /usr/share/zsh/vendor-completions/_fdfind"
6566
6667cat > " ${DPKG_DIR} /usr/share/doc/${DPKG_BASENAME} /copyright" << EOF
6768Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
You can’t perform that action at this time.
0 commit comments