0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-19 16:52:16 +00:00
termux-packages/packages/fish/apt-autocompletion-sources-paths.patch

13 lines
887 B
Diff

diff '--color=auto' -uNr fish-3.7.1/share/completions/apt.fish fish-3.7.1.mod/share/completions/apt.fish
--- fish-3.7.1/share/completions/apt.fish 2024-03-19 11:40:45.000000000 +0800
+++ fish-3.7.1.mod/share/completions/apt.fish 2024-04-02 19:37:37.743032486 +0800
@@ -28,7 +28,7 @@
# but /etc/apt/sources.list.d/ may or may not contain any files so using a fish
# wildcard glob may complain loudly if no files match the pattern so we use `find`.
# The trailing `sort -u` is largely decorative.
- cat (find /etc/apt/sources.list /etc/apt/sources.list.d/ -name "*.list") | string replace -rf '^\s*deb *(?:\[.*?\])? (?:[^ ]+) +([^ ]+) .*' '$1' | sort -u
+ cat (find @TERMUX_PREFIX@/etc/apt/sources.list @TERMUX_PREFIX@/etc/apt/sources.list.d/ -name "*.list") | string replace -rf '^\s*deb *(?:\[.*?\])? (?:[^ ]+) +([^ ]+) .*' '$1' | sort -u
end
complete -c apt -f