From 6855b923ff90e3d4b2ab0a56dcd31976af8635ff Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 17 Jul 2014 16:02:01 +0200 Subject: Revert "[Prompts] highlights current git folder" This reverts commit e81962d946de25217afb30de5662b3484919cc90. --- 12_Prompts.zsh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 71854fb..78587ae 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -84,19 +84,7 @@ __update_prompt_elements() __set_prompt_date __hbar - CURDIR="%(!.%d.%~)" - __gitdir="$(readlink -m $( git rev-parse --git-dir 2>&- ) 2>&- | sed 's\'$HOME'\~\;s\/.git$\\')" - #print "#1# "$__gitdir - #print "#2# "$CURDIR - #print "#2# "$(print -Pn $CURDIR) - if [ -n "$__gitdir" ] - then - ___gitdir=$(dirname $__gitdir)"/" - [ $___gitdir == "./" ] && unset ___gitdir - CURDIR="$(print -Pn "$CURDIR" | sed "s*$__gitdir*$___gitdir${C_}$_prompt_colors[bold_generic];3$_C${__gitdir:t}$C_$_prompt_colors[path]$_C*")" - fi - #print "#3# "$CURDIR - CURDIR=$C_$_prompt_colors[path]$_C$CURDIR$C_$color[none]$_C + CURDIR=$C_$_prompt_colors[path]$_C"%(!.%d.%~)"$C_$color[none]$_C } -- cgit v1.2.3