You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
380 B
20 lines
380 B
#compdef git-info
|
|
#autoload
|
|
|
|
#
|
|
# Completes git-info.
|
|
#
|
|
# Authors:
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
#
|
|
|
|
if ! is-true "$(command git rev-parse --is-inside-work-tree 2> /dev/null)"; then
|
|
return 1
|
|
fi
|
|
|
|
_arguments "1:toggle:((
|
|
on\:'enable in-prompt information for the current repository'
|
|
off\:'disable in-prompt information for the current repository'
|
|
))" && return 0
|
|
|