From 604f580f0546aefd6aef00b1a1943d68f4cebae6 Mon Sep 17 00:00:00 2001 From: Sean Abraham Date: Sun, 22 Apr 2018 13:37:06 -0700 Subject: [PATCH] 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) --- themes/steeef.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/steeef.zsh-theme b/themes/steeef.zsh-theme index b72a41c9..88ef1ca1 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 ;;