Skip to content

Instantly share code, notes, and snippets.

@masci
Last active December 20, 2015 23:29
Show Gist options
  • Save masci/6212881 to your computer and use it in GitHub Desktop.
Save masci/6212881 to your computer and use it in GitHub Desktop.
function _virtualenv_prompt_info {
[[ -n $(whence virtualenv_prompt_info) ]] && virtualenv_prompt_info
}
function _git_prompt_info {
[[ -n $(whence git_prompt_info) ]] && git_prompt_info
}
function _python_ver {
[[ -n $(/usr/bin/env python --version) ]] && python_ver
}
PROMPT='%{$fg_bold[red]%}╭ $(_virtualenv_prompt_info)%{$fg[cyan]%}%~ %{$fg_bold[blue]%}$(_git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}
%{$fg_bold[red]%}╰╼ %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}git:‹%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}› %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}›"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment