cleanup
parent
936a79f619
commit
84ad65c309
|
|
@ -29,6 +29,6 @@ function __powerline_left_segment() {
|
|||
((SEGMENTS_AT_LEFT += 1))
|
||||
}
|
||||
|
||||
function __powerline_left_last_segment_padding() {
|
||||
function __powerline_left_last_segment_padding {
|
||||
LEFT_PROMPT+="$(set_color ${LAST_SEGMENT_COLOR} -) ${normal}"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,16 +41,7 @@ function __powerline_user_info_prompt {
|
|||
[[ -n "${user_info}" ]] && echo "${user_info}|${color}"
|
||||
}
|
||||
|
||||
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() {
|
||||
function __powerline_terraform_prompt {
|
||||
local terraform_workspace=""
|
||||
|
||||
if [ -d .terraform ]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue