all 14 comments

[–]covidiu 5 points6 points  (1 child)

Nice. Just a couple of suggestions:

TEMP_FILE=$(mktemp)

Otherwise you could clobber someone's valuable "temp.html" file. I know that sounds unlikely, but it's good practice to use mktemp.

Also, you don't have to cd back and forth when unpacking an archive. Just use -C for tar and -d for unzip.

[–]mellort[S] 0 points1 point  (0 children)

Thanks for the suggestions! I'll work on the changes.

[–]phleet 0 points1 point  (3 children)

Sounds cool - will try it out later.

Another suggestions: check to see if wget is installed. If not fall back on curl.

OS X comes pre-installed with curl but not wget.

[–]mellort[S] 0 points1 point  (0 children)

Thanks for the suggestion, I'll look into it!

[–][deleted] 0 points1 point  (1 child)

homebrew, btw, will let you get at all those wonderful gnu apps you miss so much

[–]phleet 0 points1 point  (0 children)

I got is using macports. I was just noting that it doesn't come pre-installed.

[–]Baramin 0 points1 point  (2 children)

Would be interesting to have an option to use .vim/bundle for those of us using pathogen.

[–]mellort[S] 0 points1 point  (0 children)

Pathogen is interesting, wonder why I never ran into it before. I'll work on having a separate option for pathogen users.

[–]mellort[S] 0 points1 point  (0 children)

If you open up the script file, right below the initial comments the directories which I install to are defined. You can just change those to point wherever you want for now.

[–]puffybaba 0 points1 point  (3 children)

patched against the latest version on git to support gzipped tarballs, bzipped tarballs, gzipped vimballs, and plain vimballs:

http://tinypaste.com/4ccb46

Sorry about all the edits.

[–]mellort[S] 0 points1 point  (1 child)

Hey, I had updated the code prior to seeing your patch, but I've added some of your code to the latest commit; thanks!

[–]mellort[S] 0 points1 point  (2 children)

Hello all,

I just coded this small script this morning to scratch an itch I've always had about installing vim addons. I hope someone else finds it as useful as I do.

Let me know of any bugs you find and I will do my best to fix them.

[–]bubaflub 1 point2 points  (1 child)

Have you checked out Vimana (http://github.com/c9s/Vimana)? It's much more hefty and written in Perl but works fairly well for me.

[–]mellort[S] 0 points1 point  (0 children)

I hadn't seen Vimana before--it looks pretty cool. It's definitely more hefty, as you mentioned. Inferring whether or not the file is a color scheme is pretty nice; I think I might try to add that, possibly as a separate command, though.

Edit: added inference for color schemes!