From 1779555402cad040efc1c50d8c25ce83341a95aa Mon Sep 17 00:00:00 2001 From: romkatv Date: Sat, 11 Jan 2020 13:32:00 +0100 Subject: [PATCH] filter and dedup commands --- internal/parse.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/parse.zsh b/internal/parse.zsh index 9338fb7e..ce58ffcf 100644 --- a/internal/parse.zsh +++ b/internal/parse.zsh @@ -216,9 +216,9 @@ function _p9k_extract_commands() { fi commands+=${:-${(Q)${~token}}} - [[ $commands[-1] == '(('*'))' ]] && commands[-1]=() skip='^' done _p9k_commands+=($commands) + _p9k_commands=(${(u)_p9k_commands:#('(('*'))'|'`'*'`'|'$'*)}) }