mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 02:31:18 -03:00
Added completions/translations for zfs and zpool
This commit is contained in:
committed by
Fabian Homborg
parent
5acbd32c2e
commit
dcf9ce6fc5
7
share/functions/__fish_print_groups.fish
Normal file
7
share/functions/__fish_print_groups.fish
Normal file
@@ -0,0 +1,7 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user