Advertisement
Guest User

Untitled

a guest
May 6th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1.  
  2. ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
  3. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  4. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!"
  5. ZSH_THEME_GIT_PROMPT_CLEAN=""
  6.  
  7. function prompt_char {
  8. if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
  9. }
  10.  
  11. function virtualenv_info {
  12. [ $VIRTUAL_ENV ] && echo ''`basename $VIRTUAL_ENV`' '
  13. }
  14.  
  15. PROMPT='
  16. %{$fg[yellow]%}$(virtualenv_info)%{$reset_color%}%{$fg[magenta]%}%d%{$reset_color%}$(git_prompt_info)
  17. %_
  18. %_ $(prompt_char) '
  19.  
  20. RPROMPT='%{$fg[yellow]%}%*%{$reset_color%}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement