"git@web.lueluesay.top:root/ohmyzsh.git" did not exist on "4a11d2c35c7a526e648b37a5b02b7695be46b16a"
Commit a1200f5b authored by slavaGanzin's avatar slavaGanzin
Browse files

git auto fetch on change directory

parent 57fcee0f
function git_fetch_on_chpwd {
([[ -d .git ]] && git fetch --all >! ./.git/FETCH_LOG &)
}
chpwd_functions=(${chpwd_functions[@]} "git_fetch_on_chpwd")
unset git_fetch_on_cpwd
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment