Created
February 17, 2012 15:55
-
-
Save gabriellima/1854127 to your computer and use it in GitHub Desktop.
ciberglo.zsh-theme
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
# Based on gnzh theme | |
# load some modules | |
autoload -U colors zsh/terminfo # Used in the colour alias below | |
colors | |
setopt prompt_subst | |
# make some aliases for the colours: (coud use normal escap.seq's too) | |
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do | |
eval PR_$color='%{$fg[${(L)color}]%}' | |
done | |
eval PR_NO_COLOR="%{$terminfo[sgr0]%}" | |
eval PR_BOLD="%{$terminfo[bold]%}" | |
# Check the UID | |
# MODIFIED | |
local PR_PROMPT='$PR_NO_COLOR➤ $PR_NO_COLOR' | |
local return_code="%(?..%{$PR_RED%}%? ↵%{$PR_NO_COLOR%})" | |
# MODIFIED | |
local current_dir='%{$PR_BOLD$PR_BLUE%}${PWD/#$HOME/~}%{$PR_NO_COLOR%}' | |
local rvm_ruby='' | |
if which rvm-prompt &> /dev/null; then | |
rvm_ruby='%{$PR_RED%}${${$(rvm-prompt i v g):+<$(rvm-prompt i v g)>}:-}%{$PR_NO_COLOR%}' | |
fi | |
local git_branch='$(git_prompt_info)%{$PR_NO_COLOR%}' | |
#PROMPT="${user_host} ${current_dir} ${rvm_ruby} ${git_branch}$PR_PROMPT " | |
PROMPT="╭─ ${current_dir} ${rvm_ruby} ${git_branch} | |
╰─$PR_PROMPT " | |
RPS1="${return_code}" | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$PR_YELLOW%}‹" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$PR_NO_COLOR%}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment