Add a new theme named newin :)

pull/1432/head
zwfang 2019-10-11 23:09:50 +08:00
parent 440ca7456f
commit 0e8b6775b9
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
SCM_THEME_PROMPT_DIRTY=" ${red}"
SCM_THEME_PROMPT_CLEAN=" ${green}"
SCM_THEME_PROMPT_PREFIX=" ${purple}|${green} "
SCM_THEME_PROMPT_SUFFIX="${purple} |"
prompt() {
exit_code=$?
PS1="$(if [[ ${exit_code} = 0 ]]; then echo "${green}${exit_code}"; else echo "${red}${exit_code}"; fi) ${yellow}\t ${cyan}\w$(scm_prompt_info)${reset_color}\n${orange}$ ${reset_color}"
}
safe_append_prompt_command prompt