Skip to content

Instantly share code, notes, and snippets.

@textbook
Created June 23, 2016 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save textbook/868df31ef682f30fbfd80675ef2c2f0c to your computer and use it in GitHub Desktop.
Save textbook/868df31ef682f30fbfd80675ef2c2f0c to your computer and use it in GitHub Desktop.
Adds virtualenv to Pivotal's default (bobby) bash_it theme
#!/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}|"
RVM_THEME_PROMPT_PREFIX="|"
RVM_THEME_PROMPT_SUFFIX="| "
VIRTUALENV_THEME_PROMPT_PREFIX="[🐍 |"
VIRTUALENV_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${green}$(virtualenv_prompt)${yellow}$(ruby_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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment