1
0
Fork 0
oh-my-zsh/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh

6 lines
149 B
Bash
Raw Normal View History

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