Skip to content

Instantly share code, notes, and snippets.

####How to add the $REPOS_FOLDER environment variable for BASH

  1. Open ~/.bash_profile in your favorite plain text editor (I recommend Sublime text)
  2. Add the line below, replace /Full/Path/To/Repos with the full path to where you store your Git development repos
export REPOS_FOLDER=/Full/Path/To/Repos
@chriselly
chriselly / 0_reuse_code.js
Created April 14, 2014 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
sed -i "" 's/\/Original_Path\//\/New_Path\//g' `grep -RInils "\/Original_Path\/" .`
cdd () {
repo_folder="/Work/Development"
test=`find $repo_folder/* -maxdepth 0 -type d | grep -i "$1" -m 1`
if [ ! $1 ] || [ ! $test ]; then
cd $repo_folder
else
cd $test
fi
}