Rename variable to SEXY_THEME_SHOW_PYTHON
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# Configuration:
|
# Configuration:
|
||||||
# * To visualize python environment (virtualenv and conda) add in your .bash_profile the following line:
|
# * 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 setaf 1 &> /dev/null; then
|
||||||
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
|
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
|
||||||
@@ -45,7 +45,7 @@ env_prompt () {
|
|||||||
function prompt_command() {
|
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\]"
|
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
|
PS1="\[${BOLD}${WHITE}\]$(env_prompt) "$PS1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user