aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-11 15:32:00 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-11 15:32:00 +0300
commit1779555402cad040efc1c50d8c25ce83341a95aa (patch)
tree163d6ed079c771786a7665bccc462f8ced1c7e1b
parent461e1acb98ac1fcb1e39a1629c156b90d258b825 (diff)
filter and dedup commands
-rw-r--r--internal/parse.zsh2
1 files changed, 1 insertions, 1 deletions
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:#('(('*'))'|'`'*'`'|'$'*)})
}