Skip to content

Instantly share code, notes, and snippets.

Created May 8, 2012
What would you like to do?
Bash function to add current directory to git repo list for gitlogger <>
# Add current folder to ~/.gitlogger with name specified as argument 1
# For use with
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