From 3090ae6633aedc50b43524e6c2ce1482b0a15772 Mon Sep 17 00:00:00 2001 From: romkatv Date: Mon, 19 Aug 2019 16:35:26 +0200 Subject: [PATCH] trip terraform whitespace --- internal/p10k.zsh | 1 + 1 file changed, 1 insertion(+) 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 }