diff options
author | slavaGanzin <slava.ganzin@gmail.com> | 2016-09-29 22:14:04 +0300 |
---|---|---|
committer | slavaGanzin <slava.ganzin@gmail.com> | 2016-10-04 21:34:29 +0300 |
commit | 1427fbffef68d5796c8296ba105f325598b809f8 (patch) | |
tree | ae8c18611fd920eb2e63afc28f817141198b92f3 /plugins/git-auto-fetch/git-auto-fetch.plugin.zsh | |
parent | a1200f5bccd7c0ebe327ccbc554d56247136d48c (diff) | |
download | zsh-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.zsh | 6 |
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 |