diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-08-19 17:35:26 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-08-19 17:35:26 +0300 |
commit | 3090ae6633aedc50b43524e6c2ce1482b0a15772 (patch) | |
tree | db948442a1f51e0fec03be1617815c655e814c60 | |
parent | b3010c015648712568bd7a5377eec585bba6fbc7 (diff) |
trip terraform whitespace
-rwxr-xr-x | internal/p10k.zsh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 698a45c6..437a87cf 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3048,6 +3048,7 @@ function prompt_terraform() { local f=${TF_DATA_DIR:-.terraform}/environment [[ -r $f ]] && _p9k_read_file $f && ws=$_p9k_ret fi + ws=${${ws##[[:space:]]#}%%[[:space:]]#} [[ $ws == default ]] || _p9k_prompt_segment $0 $_p9k_color1 blue TERRAFORM_ICON 0 '' $ws } |