Skip to content

Instantly share code, notes, and snippets.

@aorcsik
Last active August 29, 2015 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aorcsik/c749f90bed0f885c4d0d to your computer and use it in GitHub Desktop.
Save aorcsik/c749f90bed0f885c4d0d to your computer and use it in GitHub Desktop.
My zsh theme
# af-magic2.zsh-theme
#
# Author: Antal Orcsik
# URL: http://aorcsik.com/
# Direct Link: https://gist.githubusercontent.com/aorcsik/c749f90bed0f885c4d0d/raw/af-magic2.zsh-theme
# Based on: Andy Fleming's af-magic theme
#
# Created on: July 17, 2014
# Last modified on: July 17, 2014
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
local ret_status="%(?:%{$fg[green]%}✔ :%{$fg[red]%}✘ %s)%{$reset_color%}"
# color vars
eval my_gray='$FG[237]'
eval my_orange='$FG[214]'
# primary prompt
PROMPT='${ret_status}\
$(virtualenv_prompt_info)\
$FG[032]%~\
$(git_prompt_info)\
$FG[032]%(!.#.>)%{$reset_color%} '
# right prompt
RPROMPT='%{$FG[237]%}[%*]%{$reset_color%}'
# git settings
ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075]("
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="$my_orange*%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}"
# virtualenv settings
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="%{$fg[yellow]%}("
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="%)%{$reset_color%} "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment