aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-04-04 17:30:39 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-04-04 17:31:04 +0300
commit9e5ab2ce95f3548d5b34b9a902646e4f5aa70946 (patch)
treef0294922b53a55d90033c766bab05843f5eb7aae /internal/p10k.zsh
parentdfc98adb5c96911a7103c265f192275f4221c9b4 (diff)
fix an embarrassing typo that causes instant prompt to get slower over time (fixes #608)
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index fcd2106c..d58b533b 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -5863,7 +5863,7 @@ _p9k_dump_instant_prompt() {
local tmp=$prompt_file.tmp.$$
zf_mv -f -- $prompt_file $tmp 2>/dev/null
- if [[ "$(<$prompt_file)" == *$'\x1e'$_p9k__instant_prompt_sig$'\x1f'* ]] 2>/dev/null; then
+ if [[ "$(<$tmp)" == *$'\x1e'$_p9k__instant_prompt_sig$'\x1f'* ]] 2>/dev/null; then
echo -n >$tmp || return
fi