Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Created May 8, 2012 03:36
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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