1
0
Fork 0
mirror of synced 2024-06-15 20:31:09 -04:00

Mark GIT_DIR for export.

Before:
  yadm push <TAB>  # Completes filenames.

After:
  yadm push <TAB>  # Completes names of git remotes.
This commit is contained in:
David Mandelberg 2019-01-04 21:26:47 -05:00 committed by Tim Byrne
parent 60e0fbbf42
commit 5d9e0a7133
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

View file

@ -18,7 +18,7 @@ if declare -F _git > /dev/null; then
antepenultimate=${COMP_WORDS[COMP_CWORD-2]}
fi
local GIT_DIR
local -x GIT_DIR
# shellcheck disable=SC2034
GIT_DIR="$(yadm introspect repo 2>/dev/null)"