Created
June 23, 2016 09:11
-
-
Save textbook/868df31ef682f30fbfd80675ef2c2f0c to your computer and use it in GitHub Desktop.
Adds virtualenv to Pivotal's default (bobby) bash_it theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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