diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-08-17 20:38:35 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-08-17 20:38:35 +0300 |
commit | ce7d4a4cd3b655192f33d3cb0380d1e588c9a647 (patch) | |
tree | 705cdd416b83237601b310284a30783d4e4fee5d /internal/p10k.zsh | |
parent | 32e76e772173f1d2856ee4002f21607523221ce7 (diff) | |
parent | 6aeb13b08aab0b35f0c9b0212f1c0cba89eaa5d3 (diff) |
Merge branch 'ptavares-master'
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 2099c32f..2e1fa9e8 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3,7 +3,7 @@ if [[ $__p9k_sourced != 13 ]]; then >&2 print -P "[%F{1}ERROR%f]: Corrupted powerlevel10k installation." >&2 print -P "" if (( ${+functions[antigen]} )); then - >&2 print -P "If using %Bantigen%b, run the folowing command to fix:" + >&2 print -P "If using %Bantigen%b, run the following command to fix:" >&2 print -P "" >&2 print -P " %F{2}antigen%f reset" if [[ -d ~/.antigen ]]; then @@ -4888,6 +4888,9 @@ _p9k_prompt_terraform_init() { } function prompt_terraform_version() { + if [[ $_POWERLEVEL9K_TERRAFORM_VERSION_ALWAYS ]]; then + _p9k_upglob "*.tf" && return 1 + fi _p9k_cached_cmd 0 '' terraform --version || return local v=${_p9k__ret#Terraform v} (( $#v < $#_p9k__ret )) || return |