Skip to content

Instantly share code, notes, and snippets.

@matsen
Last active March 28, 2019 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsen/538ae7357d9a0ecbe714 to your computer and use it in GitHub Desktop.
Save matsen/538ae7357d9a0ecbe714 to your computer and use it in GitHub Desktop.
# A modification of `gallifrey` to show virtualenv information.
# I also found the return code information to be annoying, so it's commented out.
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
PROMPT='%{$fg[green]%}%m%{$reset_color%} $(virtualenv_prompt_info)%2~ $(git_prompt_info)%{$reset_color%}%B»%b '
#RPS1="${return_code}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
ZSH_THEME_VIRTUALENV_PREFIX="%{$fg[yellow]%}["
ZSH_THEME_VIRTUALENV_SUFFIX="] %{$reset_color%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment