diff --git a/share/completions/apt-file.fish b/share/completions/apt-file.fish index 2a22b8000..20129557c 100644 --- a/share/completions/apt-file.fish +++ b/share/completions/apt-file.fish @@ -11,7 +11,7 @@ complete -f -c apt-file -s i -l ignore-case -d "Do not expand pattern" complete -f -c apt-file -s x -l regexp -d "Pattern is regexp" complete -f -c apt-file -s V -l version -d "Display version and exit" complete -f -c apt-file -s a -l architecture -d "Set arch" -complete -r -c apt-file -s s -l sources-list -a "(ls /etc/apt)" -d "Set sources.list file" +complete -r -c apt-file -s s -l sources-list -a '(set -l files /etc/apt/*; string replace /etc/apt/ "" -- $files)' -d "Set sources.list file" complete -f -c apt-file -s l -l package-only -d "Only display package name" complete -f -c apt-file -s F -l fixed-string -d "Do not expand pattern" complete -f -c apt-file -s y -l dummy -d "Run in dummy mode"