Skip to content

Instantly share code, notes, and snippets.

@kaichen
Created October 11, 2011 06:24
Show Gist options
  • Save kaichen/1277422 to your computer and use it in GitHub Desktop.
Save kaichen/1277422 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[blue]%} %~%{$reset_color%}'
local current_path='%{$terminfo[bold]$fg[blue]%}%c%{$reset_color%}'
local rvm_ruby='%{$fg[red]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
local git_branch='$(git_prompt_info)%{$reset_color%}'
local current_time='%{$fg[yellow]%}%D{[%I:%M:%S]}%{$reset_color%}'
local arrow="%{$fg_bold[red]%}>%{$reset_color%}"
PROMPT="${current_dir} ${git_branch}${arrow} "
RPS1="${return_code}"
RPROMPT="${rvm_ruby} ${current_time}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment