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

Add instant prompt for arch

This commit is contained in:
brent-moffit 2022-02-14 12:38:13 -08:00
parent 01467fae4f
commit 59e90bd8b0

View file

@ -5635,6 +5635,8 @@ prompt_arch() {
_p9k_prompt_segment "$0" "$_p9k_color1" "orange1" 'ARCH_ICON' 0 '' "$_p9k__cache_val[1]" _p9k_prompt_segment "$0" "$_p9k_color1" "orange1" 'ARCH_ICON' 0 '' "$_p9k__cache_val[1]"
} }
instant_prompt_arch() { prompt_arch; }
_p9k_prompt_arch_init() { _p9k_prompt_arch_init() {
echo 'arch init' >> ~/p9k_debug.txt echo 'arch init' >> ~/p9k_debug.txt
typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='$commands[arch]' typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='$commands[arch]'