complete -c gabbr -d 'Global abbreviation for fish'
complete -c gabbr -s a -l add -d 'Add abbreviation'
complete -c gabbr -s e -l erase -d 'Erase abbreviation'
complete -c gabbr -s l -l list -d 'Print all abbreviation names'
complete -c gabbr -s s -l show -d 'Print all abbreviations'
complete -c gabbr -s h -l help -d 'Help'

complete -c gabbr -d 'Global abbreviation for fish'
complete -c gabbr -s a -l add -d 'Add abbreviation'
complete -c gabbr -s e -l erase -d 'Erase abbreviation'
complete -c gabbr -s f -l function -d 'Add function-abbreviation'
complete -c gabbr -s l -l list -d 'Print all abbreviation names'
complete -c gabbr -s s -l show -d 'Print all abbreviations'
complete -c gabbr -s h -l help -d 'Help'

Add completion for --function option
Add completion for --function option

ryotako/fish-global-abbreviation