1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 16:06:48 +00:00
prezto/modules/git/functions/_git-info

19 lines
379 B
Plaintext
Raw Normal View History

#compdef git-info
#autoload
2012-02-01 04:37:51 +00:00
#
# 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