From f3a03664386e6a472848105841fa7807a7dbd2a1 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 13 Mar 2012 23:03:16 -0400 Subject: [PATCH] Remove Zsh HEAD Git completion, close #38 --- plugins/git/completion.zsh | 28 ---------------------------- plugins/git/init.zsh | 1 - 2 files changed, 29 deletions(-) delete mode 100644 plugins/git/completion.zsh diff --git a/plugins/git/completion.zsh b/plugins/git/completion.zsh deleted file mode 100644 index 8c4a568..0000000 --- a/plugins/git/completion.zsh +++ /dev/null @@ -1,28 +0,0 @@ -# -# Gets the latest Git completion. -# -# Authors: -# Sorin Ionescu -# - -completion_file="${0:h}/completions/_git" -completion_file_url='http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=blob_plain;f=Completion/Unix/Command/_git;hb=HEAD' -if [[ ! -e "$completion_file" ]] && (( $+commands[git] )); then - # Remove empty completions directory. - if [[ -d "${completion_file:h}"(/^F) ]]; then - rmdir "${completion_file:h}" 2> /dev/null - fi - - if mkdir -p "${completion_file:h}" > /dev/null; then - if (( $+commands[curl] )); then - curl -L "$completion_file_url" -o "$completion_file" &> /dev/null &! - fi - - if (( $+commmands[wget] )); then - wget -C "$completion_file_url" -O "$completion_file" &> /dev/null &! - fi - fi -fi -unset completion_file -unset completion_file_url - diff --git a/plugins/git/init.zsh b/plugins/git/init.zsh index 9e7b18c..f8a6781 100644 --- a/plugins/git/init.zsh +++ b/plugins/git/init.zsh @@ -9,5 +9,4 @@ source "${0:h}/alias.zsh" source "${0:h}/hub.zsh" source "${0:h}/style.zsh" -source "${0:h}/completion.zsh"