1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-29 14:50:08 +00:00

fix the icon names to fully leverage framework

This commit is contained in:
Richard Ziegler 2021-03-10 11:57:53 -05:00
parent 5f18655eac
commit 393312f092
5 changed files with 23 additions and 26 deletions

View file

@ -1195,11 +1195,11 @@
#############[ docker: shows the whale when online, and the # running and exited containers (https://www.docker.io/) ]#############
# typeset -g POWERLEVEL9K_DOCKER_ICON='🐳'
# typeset -g POWERLEVEL9K_DOCKER_RUNNING_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_RUNNING_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_RUNNING_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_PAUSED_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_EXITED_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_ONLINE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_ONLINE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_ONLINE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_PAUSE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_EXIT_ICON=''
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
# Show kubecontext only when the the command you are typing invokes one of these tools.

View file

@ -1143,11 +1143,11 @@
#############[ docker: shows the whale when online, and the # running and exited containers (https://www.docker.io/) ]#############
# typeset -g POWERLEVEL9K_DOCKER_ICON='🐳'
# typeset -g POWERLEVEL9K_DOCKER_RUNNING_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_RUNNING_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_RUNNING_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_PAUSED_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_EXITED_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_ONLINE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_ONLINE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_ONLINE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_PAUSE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_EXIT_ICON=''
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
# Show kubecontext only when the the command you are typing invokes one of these tools.

View file

@ -1139,11 +1139,11 @@
#############[ docker: shows the whale when online, and the # running and exited containers (https://www.docker.io/) ]#############
# typeset -g POWERLEVEL9K_DOCKER_ICON='🐳'
# typeset -g POWERLEVEL9K_DOCKER_RUNNING_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_RUNNING_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_RUNNING_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_PAUSED_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_EXITED_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_ONLINE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_ONLINE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_ONLINE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_PAUSE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_EXIT_ICON=''
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
# Show kubecontext only when the the command you are typing invokes one of these tools.

View file

@ -1261,11 +1261,11 @@
#############[ docker: shows the whale when online, and the # running and exited containers (https://www.docker.io/) ]#############
# typeset -g POWERLEVEL9K_DOCKER_ICON='🐳'
# typeset -g POWERLEVEL9K_DOCKER_RUNNING_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_RUNNING_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_RUNNING_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_PAUSED_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_EXITED_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_ONLINE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_ONLINE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_ONLINE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_PAUSE_ICON=''
# typeset -g POWERLEVEL9K_DOCKER_CONTAINER_EXIT_ICON=''
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
# Show kubecontext only when the the command you are typing invokes one of these tools.

View file

@ -1315,17 +1315,14 @@ function _p9k_prompt_docker_async() {
_p9k__docker_up=1
done
_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__docker_segment="%F{green}$(print_icon 'DOCKER_CONTAINER_ONLINE_ICON') ${container_status_counts[U]} %f"
_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__docker_segment+="%F{yellow}$(print_icon 'DOCKER_CONTAINER_PAUSE_ICON') ${container_status_counts[P]} %f"
_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"
_p9k__docker_segment+="%F{red}$(print_icon 'DOCKER_CONTAINER_EXIT_ICON') ${container_status_counts[E]} %f"
# All vars that may have changed state must be sent to _p9k_print_params
_p9k_print_params \