2016-09-29 16:05:49 +00:00
|
|
|
function git_fetch_on_chpwd {
|
2016-09-29 19:14:04 +00:00
|
|
|
([[ -d .git ]] && git fetch --all &>! ./.git/FETCH_LOG &)
|
2016-09-29 16:05:49 +00:00
|
|
|
}
|
2016-09-29 19:14:04 +00:00
|
|
|
chpwd_functions+=(git_fetch_on_chpwd)
|
|
|
|
git_fetch_on_chpwd
|