From 2b5d4a0c3fe914e713fd51277b4b2a6cad558e21 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Mon, 4 Jun 2012 16:11:43 +0530 Subject: [PATCH] Create symlinks to plugin locations. Instead of making a copy and fixing problems with it (like copying/excluding .git), we now simply create a soft link to the plugin location. --- antigen.zsh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index 305ff0a..164e962 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -100,11 +100,9 @@ bundle-install () { if [[ $name != *.theme ]]; then echo Installing $name - mkdir -p "$ANTIGEN_BUNDLE_DIR/$name" - pushd "$clone_dir/$loc" > /dev/null - ls | grep -Fv '.git' \ - | xargs cp -rt "$ANTIGEN_BUNDLE_DIR/$name" - popd > /dev/null + local bundle_dest="$ANTIGEN_BUNDLE_DIR/$name" + test -e "$bundle_dest" && rm -rf "$bundle_dest" + ln -sT "$clone_dir/$loc" "$bundle_dest" else mkdir -p "$ANTIGEN_BUNDLE_DIR/$name" cp "$clone_dir/$loc" "$ANTIGEN_BUNDLE_DIR/$name" -- 2.0.0