forked from extern/ohmyzsh
cache
custom
lib
log
plugins
adb
ant
apache2-macports
arcanist
archlinux
asdf
autoenv
autojump
autopep8
aws
battery
bbedit
bgnotify
boot2docker
bower
branch
brew
bundler
bwana
cabal
cake
cakephp3
capistrano
cargo
cask
catimg
celery
chruby
chucknorris
cloudapp
codeclimate
coffee
colemak
colored-man-pages
colorize
command-not-found
common-aliases
compleat
composer
copybuffer
copydir
copyfile
cp
cpanm
dash
debian
dircycle
dirhistory
dirpersist
django
dnf
docker
docker-compose
docker-machine
doctl
dotenv
droplr
eecms
emacs
ember-cli
emoji
emoji-clock
emotty
encode64
extract
fabric
fancy-ctrl-z
fasd
fastfile
fbterm
fedora
firewalld
forklift
fossil
frontend-search
fzf
gas
gb
geeknote
gem
git
git-auto-fetch
README.md
git-auto-fetch.plugin.zsh
git-extras
git-flow
git-flow-avh
git-hubflow
git-prompt
git-remote-branch
gitfast
github
gitignore
glassfish
globalias
gnu-utils
go
golang
gpg-agent
gradle
grails
grunt
gulp
hanami
helm
heroku
history
history-substring-search
homestead
httpie
iterm2
iwhois
jake-node
jenv
jhbuild
jira
jruby
jsontools
jump
kate
kitchen
knife
knife_ssh
kops
kube-ps1
kubectl
laravel
laravel4
laravel5
last-working-dir
lein
lighthouse
lol
macports
magic-enter
man
marked2
mercurial
meteor
minikube
mix
mix-fast
mosh
mvn
mysql-macports
n98-magerun
nanoc
ng
nmap
node
nomad
npm
npx
nvm
nyan
oc
osx
pass
paver
pep8
per-directory-history
percol
perl
perms
phing
pip
pj
pod
postgres
pow
powder
powify
profiles
pyenv
pylint
python
rails
rake
rake-fast
rand-quote
rbenv
rbfu
react-native
rebar
redis-cli
repo
rsync
ruby
rust
rvm
safe-paste
salt
sbt
scala
scd
screen
scw
sfffe
shrink-path
singlechar
spring
sprunge
ssh-agent
stack
sublime
sudo
supervisor
suse
svn
svn-fast-info
swiftpm
symfony
symfony2
systemadmin
systemd
taskwarrior
terminalapp
terminitor
terraform
textastic
textmate
thefuck
themes
thor
tig
tmux
tmux-cssh
tmuxinator
torrent
transfer
tugboat
ubuntu
ufw
urltools
vagrant
vagrant-prompt
vault
vi-mode
vim-interaction
virtualenv
virtualenvwrapper
vscode
vundle
wakeonlan
wd
web-search
wp-cli
xcode
yarn
yii
yii2
yum
z
zeus
zsh-navigation-tools
zsh_reload
templates
themes
tools
.gitignore
CONTRIBUTING.md
LICENSE.txt
README.md
oh-my-zsh.sh
Git auto-fetch
Automatically fetches all changes from all remotes while you are working in git-initialized directory.
Usage
Add git-auto-fetch
to the plugins array in your zshrc file:
plugins=(... git-auto-fetch)
Every time you launch a command in your shell all remotes will be fetched in background. By default autofetch will be triggered only if last fetch was done at least 60 seconds ago. You can change fetch interval in your .zshrc:
GIT_AUTO_FETCH_INTERVAL=1200 #in seconds
Log of git fetch --all
will be saved into .git/FETCH_LOG
Toggle auto fetch per folder
If you are using mobile connection or for any other reason you can disable git-auto-fetch for any folder:
$ cd to/your/project
$ git-auto-fetch
disabled
$ git-auto-fetch
enabled