summaryrefslogtreecommitdiff
path: root/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
diff options
context:
space:
mode:
authorslavaGanzin <slava.ganzin@gmail.com>2016-09-29 22:14:04 +0300
committerslavaGanzin <slava.ganzin@gmail.com>2016-10-04 21:34:29 +0300
commit1427fbffef68d5796c8296ba105f325598b809f8 (patch)
treeae8c18611fd920eb2e63afc28f817141198b92f3 /plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
parenta1200f5bccd7c0ebe327ccbc554d56247136d48c (diff)
downloadzsh-1427fbffef68d5796c8296ba105f325598b809f8.tar.gz
zsh-1427fbffef68d5796c8296ba105f325598b809f8.tar.bz2
zsh-1427fbffef68d5796c8296ba105f325598b809f8.zip
redirect output
Diffstat (limited to 'plugins/git-auto-fetch/git-auto-fetch.plugin.zsh')
-rw-r--r--plugins/git-auto-fetch/git-auto-fetch.plugin.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
index 841f47baf..cbf6984a0 100644
--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
@@ -1,5 +1,5 @@
function git_fetch_on_chpwd {
- ([[ -d .git ]] && git fetch --all >! ./.git/FETCH_LOG &)
+ ([[ -d .git ]] && git fetch --all &>! ./.git/FETCH_LOG &)
}
-chpwd_functions=(${chpwd_functions[@]} "git_fetch_on_chpwd")
-unset git_fetch_on_cpwd
+chpwd_functions+=(git_fetch_on_chpwd)
+git_fetch_on_chpwd