Chrysostomus / manjaro-zsh-config

Zsh configuration package for manjaro
MIT License
127 stars 52 forks source link

made prompt slower (in git directories only) #7

Closed excalibur1234 closed 7 years ago

excalibur1234 commented 7 years ago

added "git fetch". this command makes the prompt noticeably slower (in git directories only), but without it the number of commits your local repository is behind the online repository does NOT get displayed, which leads to rebases and possibly merge conflicts.

this has just happened to me.

excalibur1234 commented 7 years ago

is there a way to only execute "git fetch" every 5 minutes?

or is there a faster way than "git fetch" to find out, whether your local repository is behind the online repository?

is there a way to run "git fetch" only once when a git directory is entered (i.e. the right hand git prompt gets shown for the first time)?

Chrysostomus commented 7 years ago

I don't think it is a good idea to run any online commands without user interaction. It can be added if it is commented out by default.