Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. # tweaked from dstufft
  2.  
  3. # function prompt_char {
  4. # git branch >/dev/null 2>/dev/null && echo '±' && return
  5. # hg root >/dev/null 2>/dev/null && echo 'Hg' && return
  6. # echo '○'
  7. # }
  8.  
  9. # function virtualenv_info {
  10. # [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
  11. # }
  12.  
  13. # PROMPT='
  14. # %{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info)
  15. # $(virtualenv_info)$(prompt_char) '
  16.  
  17. # ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
  18. # ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  19. # ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
  20. # ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
  21. # ZSH_THEME_GIT_PROMPT_CLEAN=""
  22.  
  23. function prompt_char {
  24. git branch >/dev/null 2>/dev/null && echo 'λ' && return
  25. hg root >/dev/null 2>/dev/null && echo 'λ' && return
  26. echo 'λ'
  27. }
  28.  
  29. function virtualenv_info {
  30. [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
  31. }
  32.  
  33. PROMPT='
  34. %{$fg_bold[white]%}%n%{$reset_color%} at %{$fg_bold[white]%}%m%{$reset_color%} in %{$fg_bold[blue]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info)
  35. $(virtualenv_info) %{$fg_bold[grey]%}$(prompt_char) %{$reset_color%}'
  36.  
  37. ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg_bold[magenta]%}"
  38. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  39. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
  40. ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
  41. ZSH_THEME_GIT_PROMPT_CLEAN=""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement