git-auto-fetch.plugin.zsh 176 B

12345
  1. function git_fetch_on_chpwd {
  2. ([[ -d .git ]] && git fetch --all >! ./.git/FETCH_LOG &)
  3. }
  4. chpwd_functions=(${chpwd_functions[@]} "git_fetch_on_chpwd")
  5. unset git_fetch_on_cpwd