Last active
December 30, 2015 21:09
-
-
Save nZac/7885406 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# This is my personal zsh-theme file it requires oh-my-zsh and the | |
# wonderful virtualenv-prompt https://github.com/tonyseek/oh-my-zsh-virtualenv-prompt | |
# plugin | |
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi | |
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
CURRENT_TIME_=" %T%{$reset_color%}" | |
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="$FG[237]-----$FG[075] ( venv: " | |
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="$FG[075] ) $FG[237]-----" | |
# primary prompt | |
PROMPT='$(virtualenv_prompt_info) $(git_prompt_info)%{$reset_color%} | |
$FG[105]%(!.#.$)%{$reset_color%} ' | |
PROMPT2='%{$fg[red]%}\ %{$reset_color%}' | |
RPS1='${return_code}' | |
# color vars | |
eval my_gray='$FG[237]' | |
eval my_orange='$FG[214]' | |
# right prompt | |
RPROMPT='$my_gray%~$CURRENT_TIME_%{$reset_color%}%' | |
# git settings | |
ZSH_THEME_GIT_PROMPT_PREFIX="$FG[237]-----$FG[075] [ git: " | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
ZSH_THEME_GIT_PROMPT_DIRTY="$my_orange !%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075] ] $FG[237]-----%{$reset_color%}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment