Skip to content

Instantly share code, notes, and snippets.

@supermarin
Created January 31, 2012 21:59
Show Gist options
  • Select an option

  • Save supermarin/1713260 to your computer and use it in GitHub Desktop.

Select an option

Save supermarin/1713260 to your computer and use it in GitHub Desktop.
My zSH theme
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
local current_dir="%{$terminfo[bold]$fg[green]%}%2c%{$reset_color%}"
local git_escaped='$(git_prompt_info)'
local green_arrow="%{$fg_bold[green]%}➜"
PROMPT="${git_escaped} ${green_arrow} "
RPS1="${return_code}"
RPROMPT="${current_dir}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[green]%}]%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment