From a2ae67f629b3d663920f57ccb42b3a83511d9bcb Mon Sep 17 00:00:00 2001 From: EmilySeville7cfg Date: Fri, 26 Nov 2021 18:40:45 +1000 Subject: [PATCH] Clean-up attrib completion: - use __fish_list_windows_drives --- share/completions/attrib.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/completions/attrib.fish b/share/completions/attrib.fish index dbab37ad8..e38871a48 100644 --- a/share/completions/attrib.fish +++ b/share/completions/attrib.fish @@ -1,5 +1,6 @@ function __attrib_generate_args --description 'Function to generate args' set --local current_token (commandline --current-token --cut-at-cursor) + switch $current_token case '+*' echo -e 'r\tSet the Read-only file attribute @@ -21,7 +22,7 @@ i\tClear the Not Content Indexed file attribute' | awk -F '\t' "{ printf \"$curr /l\tApply attrib and any command-line options to the Symbolic Link, rather than the target of it /?\tShow help' case '*' - wmic logicaldisk get caption | sed --quiet '1b;/./p' + __fish_list_windows_drives end end