From 685b66895835515e3a126ab4dfd890c1d3f83ea3 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 8 Mar 2020 17:43:52 +0100 Subject: [PATCH] Complete IDs for unix users and groups that start with _ --- share/functions/__fish_complete_group_ids.fish | 4 ++-- share/functions/__fish_complete_user_ids.fish | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/share/functions/__fish_complete_group_ids.fish b/share/functions/__fish_complete_group_ids.fish index 28ea7014b..3e1604219 100644 --- a/share/functions/__fish_complete_group_ids.fish +++ b/share/functions/__fish_complete_group_ids.fish @@ -1,7 +1,7 @@ function __fish_complete_group_ids --description "Complete group IDs with group name as description" if command -sq getent - getent group | string replace -f -r '^([[:alpha:]][^:]*):[^:]*:(\d+).*' '$2\t$1' + getent group | string replace -f -r '^([[:alpha:]_][^:]*):[^:]*:(\d+).*' '$2\t$1' else if test -r /etc/group - string replace -f -r '^([[:alpha:]][^:]*):[^:]*:(\d+).*' '$2\t$1'