pull/620/head
Dongri Jin 2015-11-27 01:37:53 +09:00
parent 53d2452276
commit 1eb7b4b4c2
1 changed files with 8 additions and 15 deletions

View File

@ -1,29 +1,22 @@
#!/usr/bin/env bash
light_blue="$(color reset blue)"
light_red="$(color reset red)"
SCM_THEME_PROMPT_DIRTY=" ${bold_red}"
SCM_THEME_PROMPT_DIRTY=" ${red}"
SCM_THEME_PROMPT_CLEAN=" ${green}"
SCM_THEME_PROMPT_PREFIX=" ${light_blue}scm:("
SCM_THEME_PROMPT_SUFFIX="${light_blue})"
SCM_THEME_PROMPT_PREFIX=" ${blue}scm:("
SCM_THEME_PROMPT_SUFFIX="${blue})"
GIT_THEME_PROMPT_DIRTY=" ${bold_red}"
GIT_THEME_PROMPT_DIRTY=" ${red}"
GIT_THEME_PROMPT_CLEAN=" ${green}"
GIT_THEME_PROMPT_PREFIX="${light_blue}git:( "
GIT_THEME_PROMPT_SUFFIX="${light_blue} )"
RVM_THEME_PROMPT_PREFIX="|"
RVM_THEME_PROMPT_SUFFIX="|"
GIT_THEME_PROMPT_PREFIX="${echo_green}git:( "
GIT_THEME_PROMPT_SUFFIX="${echo_green} )"
function git_prompt_info {
git_prompt_vars
echo -e "$SCM_PREFIX$SCM_BRANCH$SCM_STATE$SCM_SUFFIX"
}
prompt() {
PS1="\h: ${reset_color}${green}\W${reset_color} $(scm_prompt_info)${reset_color}${reset_color} $ "
function prompt() {
PS1="\h: \W $(scm_prompt_info)${reset_color} $ "
}
PROMPT_COMMAND=prompt