Permalink
Browse files

Fix setup bugs and rename to setup.sh

* Fix problems with curl options when downloading the .vimrc
* Switch from bash to sh, to increase portability
* Use $HOME instead of ~
* Modify README.md to reflect changes
  • Loading branch information...
Siddharth Mahendraker
Siddharth Mahendraker committed Nov 17, 2012
1 parent 29136b9 commit b34ddd72b1d70f2778be5438bb9caa039a4fac51
Showing with 9 additions and 10 deletions.
  1. +1 −1 README.md
  2. +8 −9 setup → setup.sh
View
@@ -42,7 +42,7 @@ also become your preferred way to edit text in general.
To quickly setup Vim before we begin, please run the following command in this
projects root directory:
- $ ./setup
+ $ ./setup.sh
For a gentle introduction to Vim, please run the `vimtutor` command on the
command line.
View
@@ -1,26 +1,25 @@
-#!/bin/bash
+#!/bin/sh
restore=$PWD
-cd ~
+cd $HOME
# Get a nice .vimrc file
-curl -Ss http://git.io/AimPxw > .vimrc
+curl -SsLo .vimrc http://git.io/AimPxw
# Create a nice .vim directory
-mkdir -p ~/.vim
-mkdir -p ~/.vim/undo
-mkdir -p ~/.vim/backups
+mkdir -p .vim
+mkdir -p .vim/undo .vim/backups
+mkdir -p .vim/autoload .vim/bundle
# Get pathogen
-mkdir -p ~/.vim/autoload ~/.vim/bundle; \
-curl -Sso ~/.vim/autoload/pathogen.vim http://git.io/PJdY8Q
+curl -SsLo .vim/autoload/pathogen.vim http://git.io/PJdY8Q
# Get some bundles
-cd ~/.vim/bundle
+cd .vim/bundle
# Get synatastic

0 comments on commit b34ddd7

Please sign in to comment.