mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-25 22:22:31 +01:00
prevent icon conflict wrt docker icons and add more fun options to the config
This commit is contained in:
parent
fa929dc372
commit
4244d047a0
6 changed files with 29 additions and 15 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue