mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-26 00:41:57 +00:00
add fvm
This commit is contained in:
parent
196dce2d72
commit
22f0d6a82a
5 changed files with 42 additions and 0 deletions
|
@ -61,6 +61,7 @@
|
||||||
# dotnet_version # .NET version (https://dotnet.microsoft.com)
|
# dotnet_version # .NET version (https://dotnet.microsoft.com)
|
||||||
rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
||||||
rvm # ruby version from rvm (https://rvm.io)
|
rvm # ruby version from rvm (https://rvm.io)
|
||||||
|
fvm # flutter version management (https://github.com/leoafarias/fvm)
|
||||||
kubecontext # current kubernetes context (https://kubernetes.io/)
|
kubecontext # current kubernetes context (https://kubernetes.io/)
|
||||||
terraform # terraform workspace (https://www.terraform.io)
|
terraform # terraform workspace (https://www.terraform.io)
|
||||||
aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
|
aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
|
||||||
|
@ -704,6 +705,12 @@
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
# typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
|
###########[ fvm: flutter version management (https://github.com/leoafarias/fvm) ]############
|
||||||
|
# Fvm color.
|
||||||
|
typeset -g POWERLEVEL9K_FVM_FOREGROUND=38
|
||||||
|
# Custom icon.
|
||||||
|
# typeset -g POWERLEVEL9K_FVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
################[ terraform: terraform workspace (https://www.terraform.io) ]#################
|
################[ terraform: terraform workspace (https://www.terraform.io) ]#################
|
||||||
# Terraform color.
|
# Terraform color.
|
||||||
typeset -g POWERLEVEL9K_TERRAFORM_FOREGROUND=38
|
typeset -g POWERLEVEL9K_TERRAFORM_FOREGROUND=38
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
# dotnet_version # .NET version (https://dotnet.microsoft.com)
|
# dotnet_version # .NET version (https://dotnet.microsoft.com)
|
||||||
rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
||||||
rvm # ruby version from rvm (https://rvm.io)
|
rvm # ruby version from rvm (https://rvm.io)
|
||||||
|
fvm # flutter version management (https://github.com/leoafarias/fvm)
|
||||||
kubecontext # current kubernetes context (https://kubernetes.io/)
|
kubecontext # current kubernetes context (https://kubernetes.io/)
|
||||||
terraform # terraform workspace (https://www.terraform.io)
|
terraform # terraform workspace (https://www.terraform.io)
|
||||||
aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
|
aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
|
||||||
|
@ -680,6 +681,12 @@
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
# typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
|
###########[ fvm: flutter version management (https://github.com/leoafarias/fvm) ]############
|
||||||
|
# Fvm color.
|
||||||
|
typeset -g POWERLEVEL9K_FVM_FOREGROUND=38
|
||||||
|
# Custom icon.
|
||||||
|
# typeset -g POWERLEVEL9K_FVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
||||||
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
||||||
# different contexts.
|
# different contexts.
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
# dotnet_version # .NET version (https://dotnet.microsoft.com)
|
# dotnet_version # .NET version (https://dotnet.microsoft.com)
|
||||||
rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
||||||
rvm # ruby version from rvm (https://rvm.io)
|
rvm # ruby version from rvm (https://rvm.io)
|
||||||
|
fvm # flutter version management (https://github.com/leoafarias/fvm)
|
||||||
kubecontext # current kubernetes context (https://kubernetes.io/)
|
kubecontext # current kubernetes context (https://kubernetes.io/)
|
||||||
terraform # terraform workspace (https://www.terraform.io)
|
terraform # terraform workspace (https://www.terraform.io)
|
||||||
aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
|
aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
|
||||||
|
@ -723,6 +724,13 @@
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
# typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
|
###########[ fvm: flutter version management (https://github.com/leoafarias/fvm) ]############
|
||||||
|
# Fvm color.
|
||||||
|
# typeset -g POWERLEVEL9K_FVM_FOREGROUND=0
|
||||||
|
# typeset -g POWERLEVEL9K_FVM_BACKGROUND=4
|
||||||
|
# Custom icon.
|
||||||
|
# typeset -g POWERLEVEL9K_FVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
################[ terraform: terraform workspace (https://www.terraform.io) ]#################
|
################[ terraform: terraform workspace (https://www.terraform.io) ]#################
|
||||||
# Terraform color.
|
# Terraform color.
|
||||||
# typeset -g POWERLEVEL9K_TERRAFORM_FOREGROUND=4
|
# typeset -g POWERLEVEL9K_TERRAFORM_FOREGROUND=4
|
||||||
|
|
|
@ -118,6 +118,7 @@ function _p9k_init_icons() {
|
||||||
DOTNET_ICON '.NET'
|
DOTNET_ICON '.NET'
|
||||||
AZURE_ICON '\u2601' # ☁
|
AZURE_ICON '\u2601' # ☁
|
||||||
DIRENV_ICON '\u25BC' # ▼
|
DIRENV_ICON '\u25BC' # ▼
|
||||||
|
FLUTTER_ICON 'F'
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
'awesome-fontconfig')
|
'awesome-fontconfig')
|
||||||
|
@ -223,6 +224,7 @@ function _p9k_init_icons() {
|
||||||
DOTNET_ICON '.NET'
|
DOTNET_ICON '.NET'
|
||||||
AZURE_ICON '\u2601' # ☁
|
AZURE_ICON '\u2601' # ☁
|
||||||
DIRENV_ICON '\u25BC' # ▼
|
DIRENV_ICON '\u25BC' # ▼
|
||||||
|
FLUTTER_ICON 'F'
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
'awesome-mapped-fontconfig')
|
'awesome-mapped-fontconfig')
|
||||||
|
@ -332,6 +334,7 @@ function _p9k_init_icons() {
|
||||||
DOTNET_ICON '.NET'
|
DOTNET_ICON '.NET'
|
||||||
AZURE_ICON '\u2601' # ☁
|
AZURE_ICON '\u2601' # ☁
|
||||||
DIRENV_ICON '\u25BC' # ▼
|
DIRENV_ICON '\u25BC' # ▼
|
||||||
|
FLUTTER_ICON 'F'
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
'nerdfont-complete'|'nerdfont-fontconfig')
|
'nerdfont-complete'|'nerdfont-fontconfig')
|
||||||
|
@ -438,6 +441,7 @@ function _p9k_init_icons() {
|
||||||
DOTNET_ICON '\uE77F' #
|
DOTNET_ICON '\uE77F' #
|
||||||
AZURE_ICON '\uFD03' # ﴃ
|
AZURE_ICON '\uFD03' # ﴃ
|
||||||
DIRENV_ICON '\u25BC' # ▼
|
DIRENV_ICON '\u25BC' # ▼
|
||||||
|
FLUTTER_ICON 'F'
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -543,6 +547,7 @@ function _p9k_init_icons() {
|
||||||
DOTNET_ICON '.NET'
|
DOTNET_ICON '.NET'
|
||||||
AZURE_ICON '\u2601' # ☁
|
AZURE_ICON '\u2601' # ☁
|
||||||
DIRENV_ICON '\u25BC' # ▼
|
DIRENV_ICON '\u25BC' # ▼
|
||||||
|
FLUTTER_ICON 'F'
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1055,6 +1055,21 @@ function _p9k_read_file() {
|
||||||
[[ -n $_p9k_ret ]]
|
[[ -n $_p9k_ret ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prompt_fvm() {
|
||||||
|
(( $+commands[fvm] )) || return
|
||||||
|
local dir=$_p9k_pwd_a
|
||||||
|
while [[ $dir != / ]]; do
|
||||||
|
local link=$dir/fvm
|
||||||
|
if [[ -L $link ]]; then
|
||||||
|
if [[ ${link:A} == (#b)*/versions/([^/]##)/bin/flutter ]]; then
|
||||||
|
_p9k_prompt_segment $0 blue $_p9k_color1 FLUTTER_ICON 0 '' ${match[1]//\%/%%}
|
||||||
|
fi
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
dir=${dir:h}
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# Segment that displays the battery status in levels and colors
|
# Segment that displays the battery status in levels and colors
|
||||||
prompt_battery() {
|
prompt_battery() {
|
||||||
|
|
Loading…
Reference in a new issue