From 1b9dab7bc6374532e0834eab27c85d641b8e0dec Mon Sep 17 00:00:00 2001 From: Ian Huston Date: Sat, 6 Jun 2015 10:51:35 +0100 Subject: [PATCH] Modified version of the bobby theme which shows Python version, Virtualenv directory and Conda environment name. --- themes/bobby-python/bobby-python.theme.bash | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 themes/bobby-python/bobby-python.theme.bash diff --git a/themes/bobby-python/bobby-python.theme.bash b/themes/bobby-python/bobby-python.theme.bash new file mode 100644 index 00000000..962ebca7 --- /dev/null +++ b/themes/bobby-python/bobby-python.theme.bash @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +SCM_THEME_PROMPT_DIRTY=" ${red}✗" +SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓" +SCM_THEME_PROMPT_PREFIX=" |" +SCM_THEME_PROMPT_SUFFIX="${green}|" + +GIT_THEME_PROMPT_DIRTY=" ${red}✗" +GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓" +GIT_THEME_PROMPT_PREFIX=" ${green}|" +GIT_THEME_PROMPT_SUFFIX="${green}|" + +CONDAENV_THEME_PROMPT_SUFFIX="|" + +function prompt_command() { + #PS1="${bold_cyan}$(scm_char)${green}$(scm_prompt_info)${purple}$(ruby_version_prompt) ${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} " +} + +PROMPT_COMMAND=prompt_command;