1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-15 01:41:12 +00:00
prezto/modules/git/functions/_git-hub-shorten-url

17 lines
369 B
Plaintext
Raw Normal View History

#compdef git-hub-shorten-url
#autoload
#
# Completes git-hub-shorten-url.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
local service="$service"
zstyle ":completion:*:${service}:*:prefixes" ignored-patterns '^http(|s)://'
zstyle ":completion:*:${service}:*:hosts" ignored-patterns '^*github.com'
_arguments '1::GitHub URL:_urls' '2::code:' && return 0