pull/1508/head
Ofir Shtrull 2020-02-27 21:52:21 +02:00
parent 936a79f619
commit 84ad65c309
2 changed files with 2 additions and 11 deletions

View File

@ -29,6 +29,6 @@ function __powerline_left_segment() {
((SEGMENTS_AT_LEFT += 1)) ((SEGMENTS_AT_LEFT += 1))
} }
function __powerline_left_last_segment_padding() { function __powerline_left_last_segment_padding {
LEFT_PROMPT+="$(set_color ${LAST_SEGMENT_COLOR} -) ${normal}" LEFT_PROMPT+="$(set_color ${LAST_SEGMENT_COLOR} -) ${normal}"
} }

View File

@ -41,16 +41,7 @@ function __powerline_user_info_prompt {
[[ -n "${user_info}" ]] && echo "${user_info}|${color}" [[ -n "${user_info}" ]] && echo "${user_info}|${color}"
} }
function __powerline_terraform_prompt() { function __powerline_terraform_prompt {
local terraform_workspace=""
if [ -d .terraform ]; then
terraform_workspace="$(command terraform workspace show 2>/dev/null)"
[[ -n "${terraform_workspace}" ]] && echo "${TERRAFORM_CHAR}${terraform_workspace}|${TERRAFORM_THEME_PROMPT_COLOR}"
fi
}
function __powerline_terraform_prompt() {
local terraform_workspace="" local terraform_workspace=""
if [ -d .terraform ]; then if [ -d .terraform ]; then