Skip to content

Instantly share code, notes, and snippets.

@aaronjensen
Created September 7, 2012 01:14
Show Gist options
  • Select an option

  • Save aaronjensen/3662238 to your computer and use it in GitHub Desktop.

Select an option

Save aaronjensen/3662238 to your computer and use it in GitHub Desktop.
hub and __git_ps1 are slow
[18:12:58 app (feature/403 $ u=)]$ time __git_ps1
(feature/403 $ u=)
real 0m0.072s
user 0m0.037s
sys 0m0.033s
[18:13:18 app (feature/403 $ u=)]$ which hub
hub is /usr/local/bin/hub
[18:13:32 app (feature/403 $ u=)]$ which git
git is /usr/local/bin/git
git is /usr/bin/git
[18:13:34 app (feature/403 $ u=)]$ eval "$(hub alias -s)"
[18:13:45 app (feature/403 $ u=)]$ time __git_ps1
(feature/403 $ u=)
real 0m0.472s
user 0m0.340s
sys 0m0.118s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment