themes: Make PROMPT_COMMAND usage consistent for reloading OMB

This commit is contained in:
Koichi Murase
2022-01-15 19:14:30 +09:00
parent c3bcc5c6d2
commit 7f420263b2
65 changed files with 184 additions and 141 deletions
+2 -2
View File
@@ -11,9 +11,9 @@ GIT_THEME_PROMPT_SUFFIX="${green}|"
CONDAENV_THEME_PROMPT_SUFFIX="|"
function prompt_command() {
function _omb_theme_PROMPT_COMMAND() {
#PS1="${bold_cyan}$(scm_char)${green}$(scm_prompt_info)${purple}$(_omb_prompt_print_ruby_env) ${yellow}\h ${reset_color}in ${green}\w ${reset_color}\n${green}→${reset_color} "
PS1="\n${yellow}$(python_version_prompt) ${purple}\h ${reset_color}in ${green}\w\n${bold_cyan}$(scm_char)${green}$(scm_prompt_info) ${green}${reset_color} "
}
_omb_util_add_prompt_command prompt_command
_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND