Guest User

Untitled

a guest
Jun 23rd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. SCM_THEME_PROMPT_DIRTY=" ${red}✗"
  4. SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
  5. SCM_THEME_PROMPT_PREFIX=" ${green}"
  6. SCM_THEME_PROMPT_SUFFIX="${green}"
  7.  
  8. GIT_THEME_PROMPT_DIRTY=" ${red}✗"
  9. GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓"
  10. GIT_THEME_PROMPT_PREFIX=" ${green}"
  11. GIT_THEME_PROMPT_SUFFIX="${green}"
  12.  
  13. RVM_THEME_PROMPT_PREFIX=" ${green}"
  14. RVM_THEME_PROMPT_SUFFIX="${green}"
  15.  
  16. __battery_state() {
  17. if [[ "${THEME_BATTERY_PERCENTAGE_CHECK}" = true ]]; then
  18. printf " | $(battery_char)%"
  19. fi
  20. }
  21.  
  22. function prompt_command() {
  23. 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} "
  24. }
  25.  
  26. THEME_SHOW_CLOCK_CHAR=${THEME_SHOW_CLOCK_CHAR:-"true"}
  27. THEME_CLOCK_CHAR_COLOR=${THEME_CLOCK_CHAR_COLOR:-"$red"}
  28. THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"$bold_cyan"}
  29. THEME_CLOCK_FORMAT=${THEME_CLOCK_FORMAT:-"%Y-%m-%d %H:%M:%S"}
  30.  
  31. safe_append_prompt_command prompt_command
Add Comment
Please, Sign In to add comment