oh-my-zsh/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh

6 lines
149 B
Bash
Raw Normal View History

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