mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 18:43:51 +08:00
8 lines
436 B
Fish
8 lines
436 B
Fish
# This should be used where you want group names without a description. If you also want
|
|
# a description, such as when getting a list of groups for a completion, you probably want
|
|
# __fish_complete_groups.
|
|
function __fish_print_groups --description "Print a list of local groups"
|
|
# Leave the heavy lifting to __fish_complete_groups but strip the descriptions.
|
|
__fish_complete_groups | string replace -r '^([^\t]*)\t.*' '$1'
|
|
end
|