Skip to content

Instantly share code, notes, and snippets.

@ttscoff

ttscoff/glog.sh

Created May 8, 2012
Embed
What would you like to do?
Bash function to add current directory to git repo list for gitlogger <https://gist.github.com/2632346>
# Add current folder to ~/.gitlogger with name specified as argument 1
# For use with gitlogger.sh
function glog () {
(echo "$1:`pwd`";grep -v "`pwd`$" ~/.gitlogger) | sort > ~/.gitlogger.tmp
mv ~/.gitlogger.tmp ~/.gitlogger
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment