mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-25 22:22:31 +01:00
added tfenv support
This commit is contained in:
parent
b1aeeda6a8
commit
2eab8618b7
1 changed files with 11 additions and 0 deletions
|
|
@ -4289,6 +4289,17 @@ _p9k_prompt_swift_version_init() {
|
|||
typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='$commands[swift]'
|
||||
}
|
||||
|
||||
################################################################
|
||||
# Segment to display terraform version in use with tfenv
|
||||
prompt_tfenv() {
|
||||
local tfenv_use_version="$(tfenv list | grep '\*' | awk '{print $2}')"
|
||||
_p9k_prompt_segment "$0" "white" "blue" "TERRAFORM_ICON" 0 '' "${tfenv_use_version//\%/%%}"
|
||||
}
|
||||
|
||||
|
||||
_p9k_prompt_tfenv_init() {
|
||||
typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='$commands[tfenv]'
|
||||
}
|
||||
################################################################
|
||||
# dir_writable: Display information about the user's permission to write in the current directory
|
||||
prompt_dir_writable() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue