From c10e62ad292fc0d8b63cd727d17af3b61d8cb74d Mon Sep 17 00:00:00 2001 From: Alex Jurkiewicz Date: Thu, 12 Oct 2023 13:51:42 +0800 Subject: [PATCH] Try to cache poetry command --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 2430fba9..55cdb7bb 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4299,7 +4299,7 @@ _virtualenv_poetry() { local idx=$1 local dir=${_p9k__parent_dirs[idx]} local pyproject="$dir/pyproject.toml" - _p9k_cached_cmd 0 '' poetry -C "$dir" version + _p9k_cached_cmd 0 '$pyproject' poetry -C "$dir" version # Return the first word only, eg the value of pyproject.toml's `poetry.name` _virtualenv_name="${_p9k__ret%% *}" }