diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2014-07-17 16:02:01 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2014-10-21 16:57:49 +0200 |
commit | 6855b923ff90e3d4b2ab0a56dcd31976af8635ff (patch) | |
tree | 000b8b62d924f0ecb8a91bd2f7d73ac4cf5d14c9 | |
parent | 0608d3b43f1f7bcc0ac56184e67caad153cd700c (diff) |
Revert "[Prompts] highlights current git folder"
This reverts commit e81962d946de25217afb30de5662b3484919cc90.
-rw-r--r-- | 12_Prompts.zsh | 14 |
1 files changed, 1 insertions, 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 } |