Rename variable to SEXY_THEME_SHOW_PYTHON

pull/1424/head
Mattia Rigotti 2019-10-12 11:50:54 +02:00
parent 08785d96b5
commit a50a4ff633
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
#
# Configuration:
# * To visualize python environment (virtualenv and conda) add in your .bash_profile the following line:
# export SEXY_WITH_PYTHON=true
# export SEXY_THEME_SHOW_PYTHON=true
if tput setaf 1 &> /dev/null; then
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
@ -45,7 +45,7 @@ env_prompt () {
function prompt_command() {
PS1="\[${BOLD}${MAGENTA}\]\u \[$WHITE\]at \[$ORANGE\]\h \[$WHITE\]in \[$GREEN\]\w\[$WHITE\]\$([[ -n \$(git branch 2> /dev/null) ]] && echo \" on \")\[$PURPLE\]\$(parse_git_branch)\[$WHITE\]\n\$ \[$RESET\]"
if [ "$SEXY_WITH_PYTHON" = true ] ; then
if [ "$SEXY_THEME_SHOW_PYTHON" = true ] ; then
PS1="\[${BOLD}${WHITE}\]$(env_prompt) "$PS1
fi
}