Skip to content

Instantly share code, notes, and snippets.

@arol
arol / post-merge
Created January 16, 2013 12:36
This hook executes pod install after a pull (which downloads changes and merge in your local repo) Install it on .git/hooks/post-merge inside your project
#!/bin/bash
#
# Runs 'pod install' after performing a merge in the local repository
source ~/.bash_profile
pod install
@arol
arol / .bash_profile
Created March 22, 2012 09:57
Install tmbundle bash command
# This function allows you to install tmbdundles cloning from git being in any folder
# Usage
# $ tmbundle https://github.com/textmate/json.tmbundle.git
function tmbundle {
if [ -n "$1" ]; then
dir=$(pwd)
cd ~/Library/Application\ Support/TextMate/Bundles/
git clone $1
cd $dir