Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- SCM_THEME_PROMPT_DIRTY=" ${red}✗"
- SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
- SCM_THEME_PROMPT_PREFIX=" ${green}"
- 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=" ${green}"
- RVM_THEME_PROMPT_SUFFIX="${green}"
- __battery_state() {
- if [[ "${THEME_BATTERY_PERCENTAGE_CHECK}" = true ]]; then
- printf " | $(battery_char)%"
- fi
- }
- function prompt_command() {
- PS1="\n${gray}\h${reset_color} | $(clock_prompt)${yellow}$(ruby_version_prompt)${reset_color}$(__battery_state)\n${reset_color}${cyan}\w\n${bold_cyan}$(scm_prompt_char_info) ${yellow}→${reset_color} "
- }
- THEME_SHOW_CLOCK_CHAR=${THEME_SHOW_CLOCK_CHAR:-"true"}
- THEME_CLOCK_CHAR_COLOR=${THEME_CLOCK_CHAR_COLOR:-"$red"}
- THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"$bold_cyan"}
- THEME_CLOCK_FORMAT=${THEME_CLOCK_FORMAT:-"%Y-%m-%d %H:%M:%S"}
- safe_append_prompt_command prompt_command
Add Comment
Please, Sign In to add comment