Advertisement
Guest User

MVMn Oh-my-ZSH Theme 2.1.1

a guest
Nov 6th, 2014
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ZSH Theme - Preview: http://cl.ly/f701d00760f8059e06dc
  2. # Thanks to gallifrey, upon whose theme this is based
  3.  
  4. local return_code="%(?..%{$fg_bold[red]%}%? ↵%{$reset_color%})"
  5.  
  6. function my_git_prompt_info() {
  7.   ref=$(git symbolic-ref HEAD 2> /dev/null) || return
  8.   GIT_STATUS=$(git_prompt_status)
  9.   [[ -n $GIT_STATUS ]] && GIT_STATUS=" $GIT_STATUS"
  10.   echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$GIT_STATUS$ZSH_THEME_GIT_PROMPT_SUFFIX"
  11. }
  12.  
  13. PROMPT='%{$fg_bold[green]%}%n@%m%{$reset_color%} %{$fg_bold[blue]%}%2~%{$reset_color%} $(my_git_prompt_info)%{$reset_color%}%B»%b '
  14. #PROMPT='%{$fg_bold[green]%}%n@%m%{$reset_color%} %{$fg_bold[white]%}[%D{%a %H:%M:%S}]%{$reset_color%} %{$fg_bold[blue]%}%2~%{$reset_color%} $(my_git_prompt_info)%{$reset_color%}%B»%b '
  15. #PROMPT='%{$fg_bold[green]%}%n@%m%{$reset_color%} %{$fg_bold[white]%}[%D{%a %H:%M:%S}]%{$reset_color%} %{$fg_bold[blue]%}%2~%{$reset_color%} [%?] $(my_git_prompt_info)%{$reset_color%}%B»%b '
  16. RPS1="${return_code} %{$fg_bold[grey]%}-[ End%{$reset_color%} %{$fg[green]%}%D{%Y-%m-%d% %H:%M:%S}%{$reset_color%} %{$fg_bold[grey]%}]-%{$reset_color%}"
  17.  
  18. ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}("
  19. ZSH_THEME_GIT_PROMPT_SUFFIX=") %{$reset_color%}"
  20. ZSH_THEME_GIT_PROMPT_UNTRACKED="%%"
  21. ZSH_THEME_GIT_PROMPT_ADDED="+"
  22. ZSH_THEME_GIT_PROMPT_MODIFIED="*"
  23. ZSH_THEME_GIT_PROMPT_RENAMED="~"
  24. ZSH_THEME_GIT_PROMPT_DELETED="!"
  25. ZSH_THEME_GIT_PROMPT_UNMERGED="?"
  26.  
  27. function x_call_date() {
  28.   echo "${fg_bold[grey]}-[${reset_color} ${fg_bold[blue]}$(date "+%Y-%m-%d% %H:%M:%S")${reset_color} ${fg_bold[grey]}Start ]-${reset_color}"
  29. }
  30.  
  31. preexec_functions+=(x_call_date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement