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