mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-26 22:10:06 +00:00
filter and dedup commands
This commit is contained in:
parent
461e1acb98
commit
1779555402
1 changed files with 1 additions and 1 deletions
|
@ -216,9 +216,9 @@ function _p9k_extract_commands() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
commands+=${:-${(Q)${~token}}}
|
commands+=${:-${(Q)${~token}}}
|
||||||
[[ $commands[-1] == '(('*'))' ]] && commands[-1]=()
|
|
||||||
skip='^'
|
skip='^'
|
||||||
done
|
done
|
||||||
|
|
||||||
_p9k_commands+=($commands)
|
_p9k_commands+=($commands)
|
||||||
|
_p9k_commands=(${(u)_p9k_commands:#('(('*'))'|'`'*'`'|'$'*)})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue