Skip to content

Instantly share code, notes, and snippets.

@sonots
Created December 8, 2012 11:02
Show Gist options
  • Select an option

  • Save sonots/4239842 to your computer and use it in GitHub Desktop.

Select an option

Save sonots/4239842 to your computer and use it in GitHub Desktop.

Revisions

  1. sonots revised this gist Dec 13, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion dotfiles.sh
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ do
    ln -s ~/.dotfiles/$i ~/
    done
    vim -c ':BundleInstall!' -c ':q!' -c ':q!'
    if [ "$uname" != "Darwin" ]; then
    if [ `uname` = "Darwin" ]; then
    pushd ~/.dotfiles/.vim/bundle/vimproc
    make -f make_mac.mak
    popd
  2. sonots revised this gist Dec 13, 2012. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions dotfiles.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #!/bin/sh

    [[ -e ~/.dotfiles ]] || git clone git@github.com:sonots/.dotfiles.git ~/.dotfiles
    cd ~/.dotfiles
    pushd ~/.dotfiles

    git submodule init
    git submodule update
    @@ -14,5 +14,10 @@ do
    ln -s ~/.dotfiles/$i ~/
    done
    vim -c ':BundleInstall!' -c ':q!' -c ':q!'
    if [ "$uname" != "Darwin" ]; then
    pushd ~/.dotfiles/.vim/bundle/vimproc
    make -f make_mac.mak
    popd
    fi

    cd -
    popd
  3. sonots revised this gist Dec 8, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions dotfiles.sh
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,7 @@ do
    [ $i = "." ] && continue
    [ $i = ".." ] && continue
    [ $i = ".git" ] && continue
    [ $i = "README.md" ] && continue
    ln -s ~/.dotfiles/$i ~/
    done
    vim -c ':BundleInstall!' -c ':q!' -c ':q!'
  4. sonots renamed this gist Dec 8, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. sonots created this gist Dec 8, 2012.
    17 changes: 17 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #!/bin/sh

    [[ -e ~/.dotfiles ]] || git clone git@github.com:sonots/.dotfiles.git ~/.dotfiles
    cd ~/.dotfiles

    git submodule init
    git submodule update
    for i in `ls -a`
    do
    [ $i = "." ] && continue
    [ $i = ".." ] && continue
    [ $i = ".git" ] && continue
    ln -s ~/.dotfiles/$i ~/
    done
    vim -c ':BundleInstall!' -c ':q!' -c ':q!'

    cd -