From 5859d205d814736d538f7cd1db2d610cb2e09a33 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 14 Mar 2019 12:41:05 +0100 Subject: [PATCH] completions/apt-file: Remove `ls` call --- share/completions/apt-file.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"