1427fbffef68d5796c8296ba105f325598b809f8
- Author
- slavaGanzin <slava.ganzin@gmail.com>
- Committer
- slavaGanzin <slava.ganzin@gmail.com>
- Date
Diff
1diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
2index 841f47baf638c89a93f7e0c81fb2928fdb6d694a..cbf6984a0b7afec461eeb881ca7399a4454229d9 100644
3--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
4+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
5@@ -1,5 +1,5 @@
6 function git_fetch_on_chpwd {
7- ([[ -d .git ]] && git fetch --all >! ./.git/FETCH_LOG &)
8+ ([[ -d .git ]] && git fetch --all &>! ./.git/FETCH_LOG &)
9 }
10-chpwd_functions=(${chpwd_functions[@]} "git_fetch_on_chpwd")
11-unset git_fetch_on_cpwd
12+chpwd_functions+=(git_fetch_on_chpwd)
13+git_fetch_on_chpwd