Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Created May 8, 2012 03:36
Show Gist options
  • Save ttscoff/2632356 to your computer and use it in GitHub Desktop.
Save ttscoff/2632356 to your computer and use it in GitHub Desktop.
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