scmbreeze / scm_breeze

Adds numbered shortcuts to the output git status, and much more
https://madebynathan.com/2011/10/19/git-shortcuts-like-youve-never-seen-before/
MIT License
2.82k stars 192 forks source link

Improving the sourcing time ~100ms #282

Open PezCoder opened 5 years ago

PezCoder commented 5 years ago

What ?

# Sourcing command in my ~/.zshrc
[ -s "/Users/pezcoder/.scm_breeze/scm_breeze.sh" ] && source "/Users/pezcoder/.scm_breeze/scm_breeze.sh"

screenshot 2018-10-25 at 12 14 07 pm

It takes around ~100 ms to source scm_breeze. Is there a way this can be improved further or maybe can be lazy initialised to when the first scm_breeze shortcut is used.

ghthor commented 5 years ago

Yes, I agree. There has to absolutely be a way to speed this up.