rffwva
Last Updated: September 14, 2018
·
10.42K
· jan0sch

Update your vim pathogen plugins.

Because I don't have my whole .vim directory under version control I usually do something like this to update my bundles.

cd ~/.vim/bundle
for i in `ls`; do
  cd "$i"
  git pull
  cd ..
done

9 Responses
Add your response

5088

you can also use the command

git submodule foreach git pull origin master
over 1 year ago ·
5110

@telemachus I know of the ls pitfalls but in that case it seems okay because the directory names are usually sane. ;-)

over 1 year ago ·
5111

@rkrdo But that does only work if you have your whole directory under git control which is not the case here.

over 1 year ago ·
5121

@jan0sch true, that command is when you use submodules :p

over 1 year ago ·
13880

Thanks man! Updating my vim plugins was always so tedious!

over 1 year ago ·
13903
over 1 year ago ·
18731

for i in ~/.vim/bundle/*; do git -C $i pull; done

over 1 year ago ·
18742

@frankbe Very nice one. :-)

over 1 year ago ·
28194

do NOT parse output of ls, that's what globs are for. http://mywiki.wooledge.org/BashPitfalls#for_i_in_.24.28ls_.2A.mp3.29

over 1 year ago ·
Filed Under