Permalink
Browse files

Using submodules.

  • Loading branch information...
1 parent ea5cbbc commit d2f5ec69beec5240e48e6b2eed949e52fd361d8b @aq committed Jan 9, 2012
View
@@ -1,3 +1,3 @@
-vim/bundle/*
**/*.swp
+**/*.swo
vim/.netrwhist
View
@@ -0,0 +1,72 @@
+[submodule "vim/bundle/ack.vim"]
+ path = vim/bundle/ack.vim
+ url = git://github.com/vim-scripts/ack.vim.git
+[submodule "vim/bundle/vim-makegreen"]
+ path = vim/bundle/vim-makegreen
+ url = git://github.com/reinh/vim-makegreen.git
+[submodule "vim/bundle/vim-endwise"]
+ path = vim/bundle/vim-endwise
+ url = git://github.com/tpope/vim-endwise.git
+[submodule "vim/bundle/snipmate.vim"]
+ path = vim/bundle/snipmate.vim
+ url = git://github.com/msanders/snipmate.vim.git
+[submodule "vim/bundle/vim-rails"]
+ path = vim/bundle/vim-rails
+ url = git://github.com/tpope/vim-rails.git
+[submodule "vim/bundle/vim-surround"]
+ path = vim/bundle/vim-surround
+ url = git://github.com/tpope/vim-surround.git
+[submodule "vim/bundle/tComment"]
+ path = vim/bundle/tComment
+ url = git://github.com/vim-scripts/tComment.git
+[submodule "vim/bundle/vim-rooter"]
+ path = vim/bundle/vim-rooter
+ url = git://github.com/airblade/vim-rooter.git
+[submodule "vim/bundle/vim-taglist"]
+ path = vim/bundle/vim-taglist
+ url = git://github.com/chrismetcalf/vim-taglist.git
+[submodule "vim/bundle/vim-markdown"]
+ path = vim/bundle/vim-markdown
+ url = git://github.com/tpope/vim-markdown.git
+[submodule "vim/bundle/vim-bufexplorer"]
+ path = vim/bundle/vim-bufexplorer
+ url = git://github.com/slack/vim-bufexplorer.git
+[submodule "vim/bundle/nerdtree"]
+ path = vim/bundle/nerdtree
+ url = git://github.com/scrooloose/nerdtree.git
+[submodule "vim/bundle/textile.vim"]
+ path = vim/bundle/textile.vim
+ url = git://github.com/timcharper/textile.vim.git
+[submodule "vim/bundle/vim-cucumber"]
+ path = vim/bundle/vim-cucumber
+ url = git://github.com/tpope/vim-cucumber.git
+[submodule "vim/bundle/vim-haml"]
+ path = vim/bundle/vim-haml
+ url = git://github.com/tpope/vim-haml.git
+[submodule "vim/bundle/vim-vividchalk"]
+ path = vim/bundle/vim-vividchalk
+ url = git://github.com/tpope/vim-vividchalk.git
+[submodule "vim/bundle/vim-align"]
+ path = vim/bundle/vim-align
+ url = git://github.com/tsaleh/vim-align.git
+[submodule "vim/bundle/vim-shoulda"]
+ path = vim/bundle/vim-shoulda
+ url = git://github.com/tsaleh/vim-shoulda.git
+[submodule "vim/bundle/vim-supertab"]
+ path = vim/bundle/vim-supertab
+ url = git://github.com/tsaleh/vim-supertab.git
+[submodule "vim/bundle/vim-indexed-search"]
+ path = vim/bundle/vim-indexed-search
+ url = git://github.com/henrik/vim-indexed-search.git
+[submodule "vim/bundle/simple-javascript-indenter"]
+ path = vim/bundle/simple-javascript-indenter
+ url = git://github.com/jiangmiao/simple-javascript-indenter.git
+[submodule "vim/bundle/Command-T"]
+ path = vim/bundle/Command-T
+ url = git://github.com/wincent/Command-T.git
+[submodule "vim/bundle/vim-rubytest"]
+ path = vim/bundle/vim-rubytest
+ url = git://github.com/janx/vim-rubytest.git
+[submodule "vim/bundle/vim-coffee-script"]
+ path = vim/bundle/vim-coffee-script
+ url = git://github.com/kchmck/vim-coffee-script.git
View
79 install
@@ -1,29 +1,46 @@
#!/usr/bin/env bash
+echo "Update the system"
+ sudo apt-get update
+ sudo apt-get install aptitude
+ sudo aptitude update
+ sudo aptitude upgrade -y
+
+echo "Install software..."
+ sudo aptitude install keepassx ack shotwell chromium-browser thunderbird skype gimp vim-gnome gitg curl postgresql redis imagemagick wget nano
+
+echo "Updating ACPI..."
+ [[ -f /etc/default/grub ]] && sudo sed s/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"quiet splash acpi_osi=Linux\"/ /etc/default/grub -i.bkp
+ sudo update-grub2
+
+echo "Installing Monaco font..."
+ # http://jorrel.blogspot.com/2007/11/monaco-on-ubuntu.html
+ wget http://jorrel.googlepages.com/Monaco_Linux.ttf
+ sudo mkdir -p /usr/share/fonts/truetype/custom
+ sudo mv Monaco_Linux.ttf /usr/share/fonts/truetype/custom/
+ sudo fc-cache -f -v
+
echo "Checking for SSH key, generating one if it doesn't exist ..."
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
-echo "Copying public key to clipboard. Paste it into your Github account ..."
+echo "Copy it into your Github account ..."
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub
chromium-browser open https://github.com/account/ssh &
echo "Installing RVM (Ruby Version Manager) ..."
- curl -s https://rvm.beginrescueend.com/install/rvm -o rvm-installer ; chmod +x rvm-installer ; ./rvm-installer --version latest
- echo "
-# RVM
-[[ -s '/home/`whoami`/.rvm/scripts/rvm' ]] && source '/home/`whoami`/.rvm/scripts/rvm'" >> ~/.zshrc
- source ~/.zshrc
+ curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer -o ~/rvm-installer
+ chmod +x ~/rvm-installer ;
+ bash ~/rvm-installer -s stable
-echo "Installing Ruby 1.9.2 stable and making it the default Ruby ..."
+echo "Installing Ruby 1.9.2 stable & 1.8.7 and making 1.9.2 the default Ruby ..."
rvm install 1.9.2
+ rvm install 1.8.7
rvm use 1.9.2 --default
-echo "Installing the Rails gems (last and 2.3.14)..."
- gem install rails --no-rdoc --no-ri
+echo "Installing gems (last and 2.3.14)..."
+ gem install rails pg --no-rdoc --no-ri
gem install rails -v=2.3.14 --no-rdoc --no-ri
-echo "Setting up vim config (using git-submodules)..."
-
echo "Setting up dotfiles..."
ln -s ~/dotfiles/bashrc ~/.bashrc
ln -s ~/dotfiles/rvmrc ~/.rvmrc
@@ -33,23 +50,33 @@ echo "Setting up dotfiles..."
ln -s ~/dotfiles/gitignore ~/.gitignore
git config --global core.excludesfile ~/.gitignore
-echo "Update the system"
- sudo apt-get update
- sudo apt-get install aptitude
- sudo aptitude update
- sudo aptitude upgrade -y
-
-echo "Install software..."
- sudo aptitude install keepassx ack shotwell chromium-browser thunderbird skype gimp vim-gnome gitg
-
-echo "Updating ACPI..."
- mv /etc/default/grub /etc/default/grub.bkp
- sudo sed s/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"quiet splash acpi_osi=Linux\"/ /etc/default/grub -i.bkp
- sudo update-grub2
+echo "Setting up vim config (using git-submodules)..."
+ git submodule init && git submodule update && git submodule foreach git pull
+ # Compile Command-t with the same version of ruby used in vim.
+ cd ~/.vim/ruby/command-t
+ ruby extconf.rb
+ make
+ cd -
+ # Setting up a shortcut for ack used in the vim plugin.
+ sudo rm -Rf /usr/bin/ack && sudo ln -s /usr/bin/ack-grep /usr/bin/ack
echo "Dont forget to do that:"
echo "git config --global user.name 'my name'"
echo "git config --global user.email email@email.com"
-Monaco font
-http://jorrel.blogspot.com/2007/11/monaco-on-ubuntu.html
+# FIXME
+# git://github.com/reinh/vim-makegreen.git
+# git://github.com/astashov/vim-ruby-debugger.git
+# git://github.com/tpope/vim-fugitive.git
+# git://github.com/tpope/vim-git.git
+# git://github.com/tpope/vim-repeat.git
+# git://github.com/vim-ruby/vim-ruby.git
+
+# puts "Set snipmate.vim/after/plugin/snipmate.vim with F8\n"
+# puts "######################################\n"
+# puts "Set the shortcut for ruby test\n"
+# puts " map <unique> <Leader>k <Plug>RubyTestRun\n"
+# puts " map <unique> <Leader>K <Plug>RubyFileRun\n"
+# puts " map <unique> <Leader>lk <Plug>RubyTestRunLast\n"
+
+# Compile gvim & vim with ruby 1.9.2
Submodule Command-T added at 18686a
Submodule ack.vim added at b9f85e
Submodule nerdtree added at 217d9f
Submodule snipmate.vim added at f5a75d
Submodule tComment added at bcbaea
Submodule textile.vim added at 2f831f
Submodule vim-align added at fa5fde
Submodule vim-bufexplorer added at 3af553
Submodule vim-coffee-script added at 2591fe
Submodule vim-cucumber added at 511805
Submodule vim-endwise added at 74306a
Submodule vim-haml added at a995d4
Submodule vim-indexed-search added at 3c2fe1
Submodule vim-makegreen added at eb0497
Submodule vim-markdown added at fdc0f0
Submodule vim-rails added at e45164
Submodule vim-rooter added at 529d4c
Submodule vim-rubytest added at 68721a
Submodule vim-shoulda added at 3129eb
Submodule vim-supertab added at 096be3
Submodule vim-surround added at 4eb2cd
Submodule vim-taglist added at 926de1
Submodule vim-vividchalk added at 22aee9
View
3 zshrc
@@ -1,2 +1,5 @@
+#RVM
+[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm' >> ~/.zshrc
+
source ~/dotfiles/zsh/config
source ~/dotfiles/bash/aliases

0 comments on commit d2f5ec6

Please sign in to comment.