mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 02:18:00 +00:00
043d09bbfe
Changes: - Add optional short-code support - Improve completion for github.com URL (`http(s)://*.github.com` only) - Return with non-zero exit code appropriately
17 lines
369 B
Plaintext
17 lines
369 B
Plaintext
#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
|