Last active
December 26, 2015 10:49
-
-
Save webdevwilson/7139158 to your computer and use it in GitHub Desktop.
Overload cd to garbage collect git
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
# overload cd to gc git when entering a directory | |
cd () { | |
builtin cd "$@" | |
if [ -d ".git" ]; then | |
(git gc --quiet &) | |
fi | |
} |
My Pleasure to write you,
My name is Favor Williams,
My email address is
( [email protected])
Am interested to know
more about you,
Contact me for my
photo and other
important issue via,
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My Pleasure to write you,
My name is Favor Williams,
My email address is
( [email protected])
Am interested to know
more about you,
Contact me for my
photo and other
important issue via,
[email protected]