diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-01-11 15:32:00 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-01-11 15:32:00 +0300 |
commit | 1779555402cad040efc1c50d8c25ce83341a95aa (patch) | |
tree | 163d6ed079c771786a7665bccc462f8ced1c7e1b /internal | |
parent | 461e1acb98ac1fcb1e39a1629c156b90d258b825 (diff) |
filter and dedup commands
Diffstat (limited to 'internal')
-rw-r--r-- | internal/parse.zsh | 2 |
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:#('(('*'))'|'`'*'`'|'$'*)}) } |