Skip to content

Commit

Permalink
themes/kitsune: Add python venv
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jul 23, 2023
1 parent 8e785b1 commit 5605047
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion themes/kitsune/kitsune.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ function _omb_theme_PROMPT_COMMAND() {
[[ $BC == no && $BC == -1 ]] && BC=
BC=${BC:+${_omb_prompt_teal}-${_omb_prompt_green}($BC%)}

PS1=$TITLEBAR"\n${_omb_prompt_teal}┌─${_omb_prompt_bold_white}[\u@\h]${_omb_prompt_teal}${_omb_prompt_bold_olive}(\w)$(scm_prompt_info)\n${_omb_prompt_teal}└─${_omb_prompt_bold_green}[\A]$SC$BC${_omb_prompt_teal}-${_omb_prompt_bold_teal}[${_omb_prompt_green}${_omb_prompt_bold_green}\$${_omb_prompt_bold_teal}]${_omb_prompt_green} "
local python_venv
_omb_prompt_get_python_venv

PS1=$TITLEBAR"\n${_omb_prompt_teal}┌─${_omb_prompt_bold_white}[\u@\h]${_omb_prompt_teal}${_omb_prompt_bold_olive}(\w)$(scm_prompt_info)$_omb_prompt_get_python_venv\n${_omb_prompt_teal}└─${_omb_prompt_bold_green}[\A]$SC$BC${_omb_prompt_teal}-${_omb_prompt_bold_teal}[${_omb_prompt_green}${_omb_prompt_bold_green}\$${_omb_prompt_bold_teal}]${_omb_prompt_green} "
}

# scm theming
Expand All @@ -39,5 +42,8 @@ SCM_THEME_PROMPT_CLEAN=" ${_omb_prompt_bold_green}✓"
SCM_THEME_PROMPT_PREFIX="${_omb_prompt_bold_teal}("
SCM_THEME_PROMPT_SUFFIX="${_omb_prompt_bold_teal})${_omb_prompt_reset_color}"

OMB_PROMPT_SHOW_PYTHON_VENV=${OMB_PROMPT_SHOW_PYTHON_VENV:-false}
OMB_PROMPT_VIRTUALENV_FORMAT="${_omb_prompt_bold_gray}(%s)${_omb_prompt_reset_color}"
OMB_PROMPT_CONDAENV_FORMAT="${_omb_prompt_bold_gray}(%s)${_omb_prompt_reset_color}"

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND

0 comments on commit 5605047

Please sign in to comment.