From f38cba9a2d8950250ae1cd1906b5ef64f0809989 Mon Sep 17 00:00:00 2001 From: EmilySeville7cfg Date: Fri, 26 Nov 2021 19:08:09 +1000 Subject: [PATCH] Clean-up attrib completion: - remove __fish_list_windows_drives call - hide /d, /l without /s --- share/completions/attrib.fish | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/share/completions/attrib.fish b/share/completions/attrib.fish index e38871a48..2460db4cc 100644 --- a/share/completions/attrib.fish +++ b/share/completions/attrib.fish @@ -14,15 +14,16 @@ a\tClear the Archive file attribute s\tClear the System file attribute h\tClear the Hidden file attribute i\tClear the Not Content Indexed file attribute' | awk -F '\t' "{ printf \"$current_token%s\t%s\n\", \$1, \$2 }" - case '/*' + case '*' + if __fish_seen_argument --windows 's' + echo -e '/d\tApply attrib and any command-line options to directories +/l\tApply attrib and any command-line options to the Symbolic Link, rather than the target of it' + end + echo -e '+\tSet the file attribute -\tClear the file attribute /s\tApply to matching files in the current directory and all of its subdirectories -/d\tApply attrib and any command-line options to directories -/l\tApply attrib and any command-line options to the Symbolic Link, rather than the target of it /?\tShow help' - case '*' - __fish_list_windows_drives end end