From efbddc10845e65e1bad8fa637f393d8cd9981a54 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 8 Jan 2012 00:58:00 -0500 Subject: Pineapples --- _zshrc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to '_zshrc') diff --git a/_zshrc b/_zshrc index 907ec7bd..6e62d440 100644 --- a/_zshrc +++ b/_zshrc @@ -142,22 +142,23 @@ alias irb='ripl' function prompt_char { #[ -e ".git" ] && echo '+' && return - git branch &> /dev/null && echo '+' && return + #git branch &> /dev/null && echo '+' && return #[ -e ".hg" ] && echo '☿' && return - hg root &> /dev/null && echo '☿' && return + #hg root &> /dev/null && echo '☿' && return #echo '$' echo '%(!.#.$)' } function git_branch { #[ -e ".git" ] && echo ':'${"$(cat .git/HEAD)"##*/} + #git branch &> /dev/null && echo -e '\033[32m:\033[33m'${"$(git branch)"##* } && return } -#setopt PROMPT_SUBST -function chpwd { - PROMPT="%{$terminfo[bold]$fg[green]%}[%{$fg[blue]%}%30<..<%~$(git_branch)%{$fg[green]%}]$(prompt_char)%{$terminfo[sgr0]$reset_color%} " -} -chpwd +#setopt prompt_subst +#function chpwd { +PROMPT="%{$terminfo[bold]$fg[green]%}[%{$fg[blue]%}%30<..<%~$(git_branch)%{$fg[green]%}]$(prompt_char)%{$terminfo[sgr0]$reset_color%} " +#} +#chpwd RPROMPT="%(?..%{$terminfo[bold]$fg[green]%}[%{$fg[red]%}%?%{$fg[green]%}]%{$terminfo[sgr0]%})" source ~/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -- cgit 1.4.1