Skip to content

Instantly share code, notes, and snippets.

View mgathu1's full-sized avatar

Mutugi Gathuri mgathu1

  • McGill University Library
  • Montreal
View GitHub Profile
@mgathu1
mgathu1 / .bashrc
Last active August 29, 2015 14:01
bashrc with git completion
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@mgathu1
mgathu1 / vim_centos.sh
Last active August 29, 2015 13:59 — forked from fundon/vim_centos.sh
#sudo yum remove $(rpm -qa | grep ^vim)
# the above line requires sudo and cvs to be removed
# so we use the one below instead
sudo yum remove vim-common vim-enhanced
#!/bin/bash
# on centos minimal
sudo yum install gcc make ncurses-devel lua lua-devel perl wget
# Download vim7.4
sudo apt-get install liblua5.1-dev
sudo mkdir /usr/include/lua5.1/include/
sudo cp /usr/include/lua5.1/* /usr/include/lua5.1/include/
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.1.so /usr/local/lib/liblua.so
hg clone https://code.google.com/p/vim/
cd vim
./configure --with-features=huge \
--enable-perlinterp \
--enable-rubyinterp \
--enable-pythoninterp=yes \