Skip to content

Instantly share code, notes, and snippets.

@aldoah0a
Created November 11, 2013 11:31
Show Gist options
  • Select an option

  • Save aldoah0a/7411869 to your computer and use it in GitHub Desktop.

Select an option

Save aldoah0a/7411869 to your computer and use it in GitHub Desktop.

Revisions

  1. aldoah0a created this gist Nov 11, 2013.
    38 changes: 38 additions & 0 deletions clone_local_vim.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    #!/bin/bash -e
    set -e

    set -x

    APTITUDE_OPTIONS="-y"

    sudo apt-get update
    sudo apt-get upgrade

    echo "Getting packages"
    cat <<PACKAGES | xargs sudo apt-get install $APTITUDE_OPTIONS
    ruby1.8
    ruby-dev
    git
    vim-nox
    make
    PACKAGES

    echo "All Packages installed"

    echo "cloning the repo"
    #TODO: Better error handling
    git clone https://Ayed@bitbucket.org/Ayed/vim.git ~/.vim



    echo "Building Command T"
    #TODO: is it already built?
    cd ~/.vim/bundle/Command-T/ruby/commandt-t/
    ruby extconf.rb
    make

    echo "Simlink vimrc"
    ln -s ~/.vim/vimrc ~/.vimrc
    echo "Changing directory to your home"
    cd ~
    echo "Enjoy!"