Created
May 8, 2012 03:36
-
-
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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