12 lines
398 B
Plaintext
Executable File
12 lines
398 B
Plaintext
Executable File
#small script to be appended to bash.profile; calls the GitUpstreamer script to auto-commit changes
|
|
function cd {
|
|
# Actually change the directory with all args passed to the function
|
|
if builtin cd "$@"; then
|
|
# If the dir exists, run the git script on git directories
|
|
if [[ -d ".git" ]] ; then
|
|
echo "[git]: Note $(pwd) is under Git revision control."
|
|
. "$SCRIPTS/GitUpstreamer"
|
|
fi
|
|
fi
|
|
}
|