1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 12:20:07 +00:00

filter and dedup commands

This commit is contained in:
romkatv 2020-01-11 13:32:00 +01:00
parent 461e1acb98
commit 1779555402

View file

@ -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:#('(('*'))'|'`'*'`'|'$'*)})
}