prevent icon conflict wrt docker icons and add more fun options to the config

This commit is contained in:
Richard Ziegler 2021-03-08 12:02:17 -05:00
commit 4244d047a0
6 changed files with 29 additions and 15 deletions

View file

@ -1314,15 +1314,15 @@ function _p9k_prompt_docker_async() {
_p9k__docker_up=1
done
_p9k_get_icon '' ONLINE_ICON
_p9k_get_icon '' DOCKER_CONTAINER_ONLINE_ICON
(( ${container_status_counts[U]} )) && \
_p9k__docker_segment="%F{green}${POWERLEVEL9K_DOCKER_RUNNING_ICON:-$_p9k__ret} ${container_status_counts[U]} %f"
_p9k_get_icon '' PAUSE_ICON
_p9k_get_icon '' DOCKER_CONTAINER_PAUSE_ICON
(( ${container_status_counts[P]} )) && \
_p9k__docker_segment+="%F{yellow}${POWERLEVEL9K_DOCKER_PAUSED_ICON:-$_p9k__ret} ${container_status_counts[P]} %f"
_p9k_get_icon '' FAIL_ICON
_p9k_get_icon '' DOCKER_CONTAINER_EXIT_ICON
(( ${container_status_counts[E]} )) && \
_p9k__docker_segment+="%F{red}${POWERLEVEL9K_DOCKER_EXITED_ICON:-$_p9k__ret} ${container_status_counts[E]} %f"