Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. function virtualenv_info {
  2. [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
  3. }
  4.  
  5. function box_name {
  6. [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
  7. }
  8.  
  9. function prompt_char {
  10. git branch >/dev/null 2>/dev/null && echo '☿' && return
  11. hg root >/dev/null 2>/dev/null && echo '=' && return
  12. echo '>'
  13. }
  14.  
  15. PROMPT='
  16. %{$fg[yellow]%}>>%{$reset_color%} %* %{$fg[yellow]%}>%{$reset_color%} %{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}$(box_name)%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info)
  17. $(virtualenv_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%{$fg[yellow]%}$(prompt_char)%{$reset_color%} '
  18.  
  19. ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
  20. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  21. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
  22. ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
  23. ZSH_THEME_GIT_PROMPT_CLEAN=""
  24.  
  25. local return_status="%{$fg[red]%}%(?..✘)%{$reset_color%}"
  26. RPROMPT='${return_status}%{$reset_color%}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement