aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/netctl-auto.fish
diff options
context:
space:
mode:
authorGravatar Clément Martinez <clementmartinezdev@gmail.com>2016-06-07 20:41:04 +0200
committerGravatar Clément Martinez <clementmartinezdev@gmail.com>2016-06-07 20:41:04 +0200
commitc84137aec8043976a9c8deaf5206618abf0bef80 (patch)
tree35756f52f1f14170af2c62416854b2bc843a06e3 /share/completions/netctl-auto.fish
parentf1dc1cd92b8dd8f0755bc190030ed3e347602fa7 (diff)
Clean netctl-auto and udiskctl completions
Diffstat (limited to 'share/completions/netctl-auto.fish')
-rw-r--r--share/completions/netctl-auto.fish4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/completions/netctl-auto.fish b/share/completions/netctl-auto.fish
index 034c1642..90558c57 100644
--- a/share/completions/netctl-auto.fish
+++ b/share/completions/netctl-auto.fish
@@ -3,8 +3,10 @@ set -l cmds list store restore stop-all start stop restart switch-to status enab
function __fish_print_netctl-auto_profile
for line in (netctl-auto list)
set -l profile (string sub -s 3 $line)
- if [ (string sub -l 1 $line) = "*" ]
+ if string match -q '\**' -- $line
printf "%s\t%s\n" $profile "Active profile"
+ else if string match -q "!*" -- $line
+ printf "%s\t%s\n" $profile "Disabled profile"
else
printf "%s\t%s\n" $profile "Profile"
end