mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-09-06 22:37:33 +00:00
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
|