Added initial zsh completion support to git_index
zsh now completes all arguments and all directories inside $GIT_REPO_DIR. This is till buggy because not all directories in $GIT_REPO_DIR are actual git projects. Next update will include completing the list in the .git_index file.
This commit is contained in:
@@ -146,5 +146,7 @@ if [ $shell = "bash" ]; then
|
||||
# If you know how to rewrite _git_index_tab_completion() for zsh, please send me a pull request!
|
||||
complete -o nospace -F _git_index_tab_completion git_index
|
||||
complete -o nospace -F _git_index_tab_completion $git_index_alias
|
||||
else
|
||||
compdef _git_index_tab_completion git_index $git_index_alias
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user