aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-10-03 10:23:31 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-10-03 10:23:31 +1300
commit7ded4bce8d2c1ef729ffd07134c324b51b555b12 (patch)
tree671f547dcb09e179b1f061d62cbfd296c584c6eb /Makefile
parentExplicit perms and formatting (diff)
downloaddotfiles-7ded4bce8d2c1ef729ffd07134c324b51b555b12.tar.gz
dotfiles-7ded4bce8d2c1ef729ffd07134c324b51b555b12.zip
cd into vim inline to simplify find command
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 5c918dca..66a99a10 100644
--- a/Makefile
+++ b/Makefile
@@ -104,12 +104,14 @@ install-vim :
install -m 0644 -- vim/after/ftplugin/* $(HOME)/.vim/after/ftplugin
install -m 0644 -- vim/after/plugin/* $(HOME)/.vim/after/plugin
git submodule update --init
- find vim/bundle -type d \( -name .git -prune -o -type d -print \) | while IFS= read -r dir ; do \
- install -m 0755 -d -- "$${dir}" $(HOME)/.vim/"$${dir#vim/}" ; \
- done
- find vim/bundle -type f ! -name '.git*' | while IFS= read -r file ; do \
- install -m 0644 -- "$${file}" $(HOME)/.vim/"$${file#vim/}" ; \
- done
+ cd vim && find bundle -type d \( -name .git -prune -o -type d -print \) | \
+ while IFS= read -r dir ; do \
+ install -m 0755 -d -- "$${dir}" $(HOME)/.vim/"$$dir" ; \
+ done
+ cd vim && find bundle -type f ! -name '.git*' | \
+ while IFS= read -r file ; do \
+ install -m 0644 -- "$${file}" $(HOME)/.vim/"$$file" ; \
+ done
rm -f -- $(HOME)/.vim/autoload/pathogen.vim
ln -s -- ../bundle/pathogen/autoload/pathogen.vim \
$(HOME)/.vim/autoload/pathogen.vim