Last active
August 11, 2018 12:17
-
-
Save ro6ley/252dc36e2e5d0f0ec59ce40c462474ba to your computer and use it in GitHub Desktop.
A ZSH theme that is a combination of Steef and Robby Russel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
# PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' | |
function virtualenv_info { | |
[ $VIRTUAL_ENV ] && | |
echo '('%F{blue}`basename $VIRTUAL_ENV`%f') ' | |
} | |
#use extended color palette if available | |
if [[ $terminfo[colors] -ge 256 ]]; then | |
turquoise="%F{81}" | |
orange="%F{166}" | |
purple="%F{135}" | |
hotpink="%F{161}" | |
limegreen="%F{118}" | |
else | |
turquoise="%F{cyan}" | |
orange="%F{yellow}" | |
purple="%F{magenta}" | |
hotpink="%F{red}" | |
limegreen="%F{green}" | |
fi | |
# enable VCS systems you use | |
zstyle ':vcs_info:*' enable git svn | |
# check-for-changes can be really slow. | |
# you should disable it, if you work with large repositories | |
zstyle ':vcs_info:*:prompt:*' check-for-changes true | |
PROMPT=$' | |
$(virtualenv_info)%{$purple%}%n${PR_RST} at %{$orange%}%m${PR_RST} in %{$limegreen%}%~${PR_RST} $(git_prompt_info) | |
$ ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" | |
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