Skip to content
Snippets Groups Projects
Commit 3cf730cd authored by rhatto's avatar rhatto
Browse files

Avoiding duplication on git completion

parent dbad98be
Branches
Tags 1.0.2
No related merge requests found
...@@ -16,6 +16,14 @@ _keyringer_git_complete() { ...@@ -16,6 +16,14 @@ _keyringer_git_complete() {
fi fi
_git _git
LAST=${COMP_WORDS[COMP_CWORD]}
REPLY=${COMPREPLY[@]}
if [ "$REPLY" == "$LAST" ]; then
return
fi
echo ${COMPREPLY[@]} echo ${COMPREPLY[@]}
) )
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment