Skip to content

Commit

Permalink
Update yonce.theme.bash
Browse files Browse the repository at this point in the history
  • Loading branch information
M0nica authored May 11, 2020
1 parent aea5aa3 commit 160f729
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion yonce.theme.bash
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ __YONCE_PROMPT_CHAR_PS1=${THEME_PROMPT_CHAR_PS1:-"└"}
__YONCE_PROMPT_CHAR_PS2=${THEME_PROMPT_CHAR_PS2:-"└"}

___YONCE_PREFIX=${___YONCE_PREFIX:-"lyric"}
___YONCE_TOP_LEFT=${___YONCE_TOP_LEFT:-"user host dir scm"}
___YONCE_TOP_LEFT=${___YONCE_TOP_LEFT:-"user host dir scm virtualenv"}
___YONCE_TOP_RIGHT=${___YONCE_TOP_RIGHT:-"exitcode node python todo clock battery"}
___YONCE_BOTTOM=${___YONCE_BOTTOM:-"char"}

Expand Down Expand Up @@ -307,6 +307,15 @@ ___yonce_prompt_host() {
printf "%s|%s" "${separator}" "${icon}" "${info}"
}

___yonce_prompt_virtualenv(){
if test -z ${VIRTUAL_ENV} ; then
info=""
else
info="${bold_red}(`basename \"${VIRTUAL_ENV}\"`)"
printf "%s" "${info}"
fi

}
___yonce_prompt_dir() {
icon="${white}"
info="${THEME_COLOR_CWD}${__YONCE_CWD}"
Expand Down

0 comments on commit 160f729

Please sign in to comment.