git-auto-fetch.plugin.zsh 149 Bytes
Newer Older
1
function git_fetch_on_chpwd {
slavaGanzin's avatar
slavaGanzin committed
2
  ([[ -d .git ]] && git fetch --all &>! ./.git/FETCH_LOG &)
3
}
slavaGanzin's avatar
slavaGanzin committed
4
5
chpwd_functions+=(git_fetch_on_chpwd)
git_fetch_on_chpwd