mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-16 07:21:13 +00:00
b3c27bb164
to improve performance if git is aliased to hub or other wrappers.
19 lines
379 B
Plaintext
19 lines
379 B
Plaintext
#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
|