diff options
author | Sean Abraham <Sean.A208@gmail.com> | 2018-04-22 13:37:06 -0700 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-04-22 22:37:06 +0200 |
commit | 604f580f0546aefd6aef00b1a1943d68f4cebae6 (patch) | |
tree | 531bd850990e22386cf8ffc015cd297ae02480f8 | |
parent | c7185c35f35d5c9a57a48815d379c5b1be47cd8a (diff) | |
download | zsh-604f580f0546aefd6aef00b1a1943d68f4cebae6.tar.gz zsh-604f580f0546aefd6aef00b1a1943d68f4cebae6.tar.bz2 zsh-604f580f0546aefd6aef00b1a1943d68f4cebae6.zip |
Make steeef theme much faster by not iterating through all history (#6359)
* Make steef much faster by not printing all history each time
* Use whence -c to expand shell functions as well
* Use $2 (expanded command about to be ran)
-rw-r--r-- | themes/steeef.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/steeef.zsh-theme b/themes/steeef.zsh-theme index b72a41c92..88ef1ca1b 100644 --- a/themes/steeef.zsh-theme +++ b/themes/steeef.zsh-theme @@ -62,7 +62,7 @@ zstyle ':vcs_info:*:prompt:*' nvcsformats "" function steeef_preexec { - case "$(history $HISTCMD)" in + case "$2" in *git*) PR_GIT_UPDATE=1 ;; |