Commit 2b5d4a0c3fe914e713fd51277b4b2a6cad558e21
1 parent
7e0aca7cec
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.
Showing 1 changed file with 3 additions and 5 deletions Side-by-side Diff
antigen.zsh
| ... | ... | @@ -100,11 +100,9 @@ bundle-install () { |
| 100 | 100 | |
| 101 | 101 | if [[ $name != *.theme ]]; then |
| 102 | 102 | echo Installing $name |
| 103 | - mkdir -p "$ANTIGEN_BUNDLE_DIR/$name" | |
| 104 | - pushd "$clone_dir/$loc" > /dev/null | |
| 105 | - ls | grep -Fv '.git' \ | |
| 106 | - | xargs cp -rt "$ANTIGEN_BUNDLE_DIR/$name" | |
| 107 | - popd > /dev/null | |
| 103 | + local bundle_dest="$ANTIGEN_BUNDLE_DIR/$name" | |
| 104 | + test -e "$bundle_dest" && rm -rf "$bundle_dest" | |
| 105 | + ln -sT "$clone_dir/$loc" "$bundle_dest" | |
| 108 | 106 | else |
| 109 | 107 | mkdir -p "$ANTIGEN_BUNDLE_DIR/$name" |
| 110 | 108 | cp "$clone_dir/$loc" "$ANTIGEN_BUNDLE_DIR/$name" |