mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-06-14 10:51:41 +00:00
Make sure that the current directory is a Git repository
This commit is contained in:
@ -8,6 +8,10 @@
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
if ! is-true "$(git rev-parse --is-inside-work-tree 2> /dev/null)"; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
local state expl remotes remote branches_or_tags branches tags files ret=1
|
||||
|
||||
_arguments -C -s -S \
|
||||
|
Reference in New Issue
Block a user