From b4655662cd566e6e0d275b4639cf1339e5c0388e Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Mon, 13 Aug 2012 03:27:53 +1200 Subject: [PATCH] Disabling buggy Zsh tab completion for now. Will try to revisit this later on, but no completion is better than broken completion. --- lib/git/aliases_and_bindings.sh | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/lib/git/aliases_and_bindings.sh b/lib/git/aliases_and_bindings.sh index da11404..f50f7c4 100644 --- a/lib/git/aliases_and_bindings.sh +++ b/lib/git/aliases_and_bindings.sh @@ -125,30 +125,8 @@ fi -# ZSH tab completion -if [[ $shell == "zsh" ]]; then - # Turn on support for bash completion - autoload -Uz bashcompinit - bashcompinit - - # -- zsh - compdef $git_alias=git - compdef _git $git_pull_alias=git-pull - compdef _git $git_push_alias=git-push - compdef _git $git_fetch_alias=git-fetch - compdef _git $git_fetch_and_rebase_alias=git-fetch - compdef _git $git_diff_alias=git-diff - compdef _git $git_commit_alias=git-commit - compdef _git $git_commit_all_alias=git-commit - compdef _git $git_checkout_alias=git-checkout - compdef _git $git_branch_alias=git-branch - compdef _git $git_branch_all_alias=git-branch - compdef _git $git_log_alias=git-log - compdef _git $git_log_stat_alias=git-log - compdef _git $git_log_graph_alias=git-log - compdef _git $git_add_shortcuts_alias=git-add - compdef _git $git_merge_alias=git-merge -else +# Tab completion +if [ $shell = "bash" ]; then complete -o default -o nospace -F _git $git_alias fi