mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-02-18 08:44:32 +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
|
@ -1196,6 +1196,8 @@
|
|||
#############[ 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=''
|
||||
|
||||
|
|
|
@ -1144,6 +1144,8 @@
|
|||
#############[ 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=''
|
||||
|
||||
|
|
|
@ -1140,6 +1140,8 @@
|
|||
#############[ 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=''
|
||||
|
||||
|
|
|
@ -1262,6 +1262,8 @@
|
|||
#############[ 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=''
|
||||
|
||||
|
|
|
@ -145,8 +145,9 @@ function _p9k_init_icons() {
|
|||
JULIA_ICON 'jl'
|
||||
SCALA_ICON 'scala'
|
||||
DOCKER_ICON '\UE7B0'
|
||||
ONLINE_ICON '\UF674'
|
||||
PAUSE_ICON '\UF04C' #
|
||||
DOCKER_CONTAINER_ONLINE_ICON '\UF674'
|
||||
DOCKER_CONTAINER_PAUSE_ICON '\UF04C' #
|
||||
DOCKER_CONTAINER_EXIT_ICON '\UF00D'
|
||||
)
|
||||
;;
|
||||
'awesome-fontconfig')
|
||||
|
@ -276,8 +277,9 @@ function _p9k_init_icons() {
|
|||
JULIA_ICON 'jl'
|
||||
SCALA_ICON 'scala'
|
||||
DOCKER_ICON '\UE7B0'
|
||||
ONLINE_ICON '\UF674'
|
||||
PAUSE_ICON '\UF04C' #
|
||||
DOCKER_CONTAINER_ONLINE_ICON '\UF674'
|
||||
DOCKER_CONTAINER_PAUSE_ICON '\UF04C' #
|
||||
DOCKER_CONTAINER_EXIT_ICON '\UF00D'
|
||||
)
|
||||
;;
|
||||
'awesome-mapped-fontconfig')
|
||||
|
@ -410,8 +412,9 @@ function _p9k_init_icons() {
|
|||
JULIA_ICON 'jl'
|
||||
SCALA_ICON 'scala'
|
||||
DOCKER_ICON '\UE7B0'
|
||||
ONLINE_ICON '\UF674'
|
||||
PAUSE_ICON '\UF04C' #
|
||||
DOCKER_CONTAINER_ONLINE_ICON '\UF674'
|
||||
DOCKER_CONTAINER_PAUSE_ICON '\UF04C'
|
||||
DOCKER_CONTAINER_EXIT_ICON '\UF00D'
|
||||
)
|
||||
;;
|
||||
'nerdfont-complete'|'nerdfont-fontconfig')
|
||||
|
@ -542,8 +545,9 @@ function _p9k_init_icons() {
|
|||
JULIA_ICON '\uE624' #
|
||||
SCALA_ICON '\uE737' #
|
||||
DOCKER_ICON '\UE7B0' #
|
||||
ONLINE_ICON '\UF674' #
|
||||
PAUSE_ICON '\UF04C' #
|
||||
DOCKER_CONTAINER_ONLINE_ICON '\UF674' #
|
||||
DOCKER_CONTAINER_PAUSE_ICON '\UF04C' #
|
||||
DOCKER_CONTAINER_EXIT_ICON '\UF00D' #
|
||||
)
|
||||
;;
|
||||
ascii)
|
||||
|
@ -671,8 +675,9 @@ function _p9k_init_icons() {
|
|||
JULIA_ICON 'jl'
|
||||
SCALA_ICON 'scala'
|
||||
DOCKER_ICON 'docker'
|
||||
ONLINE_ICON 'o'
|
||||
PAUSE_ICON '"'
|
||||
DOCKER_CONTAINER_ONLINE_ICON 'o'
|
||||
DOCKER_CONTAINER_PAUSE_ICON '"'
|
||||
DOCKER_CONTAINER_EXIT_ICON 'x'
|
||||
)
|
||||
;;
|
||||
*)
|
||||
|
@ -802,8 +807,9 @@ function _p9k_init_icons() {
|
|||
JULIA_ICON 'jl'
|
||||
SCALA_ICON 'scala'
|
||||
DOCKER_ICON '\UE7B0'
|
||||
ONLINE_ICON '\UF674'
|
||||
PAUSE_ICON '\UF04C' #
|
||||
DOCKER_CONTAINER_ONLINE_ICON '\UF674'
|
||||
DOCKER_CONTAINER_PAUSE_ICON '\UF04C' #
|
||||
DOCKER_CONTAINER_EXIT_ICON '\UF00D'
|
||||
)
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -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…
Reference in a new issue