Update atomic.theme.bash

fixed the space error after hiding the scm
pull/1715/head
Luis Felipe Sánchez 2020-11-26 09:11:08 -05:00 committed by GitHub
parent 63ad4897ef
commit 794f0e321e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ ___atomic_prompt_user_info() {
___atomic_prompt_dir() { ___atomic_prompt_dir() {
color=${IRed} color=${IRed}
box="[|]${normal}${Line}" box="[|]${normal}"
info="\w" info="\w"
printf "%s|%s|%s|%s" "${color}" "${info}" "${bold_white}" "${box}" printf "%s|%s|%s|%s" "${color}" "${info}" "${bold_white}" "${box}"
} }
@ -125,7 +125,7 @@ ___atomic_prompt_dir() {
___atomic_prompt_scm() { ___atomic_prompt_scm() {
[ "${THEME_SHOW_SCM}" != "true" ] && return [ "${THEME_SHOW_SCM}" != "true" ] && return
color=$bold_green color=$bold_green
box="[${IWhite}$(scm_char)] " box="${Line}[${IWhite}$(scm_char)] "
info="$(scm_prompt_info)" info="$(scm_prompt_info)"
printf "%s|%s|%s|%s" "${color}" "${info}" "${bold_white}" "${box}" printf "%s|%s|%s|%s" "${color}" "${info}" "${bold_white}" "${box}"
} }