diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-03-02 12:36:52 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-03-02 12:36:52 +0100 |
commit | f4982398816e2dee92e0f7483b0c2c3456c3ec8d (patch) | |
tree | a825e8694f015ceba53e50bb92dba75113f168bc /01_Internal.zsh | |
parent | ce56e97857f9fcaaa9b6e7773e78c29a4dcc24b9 (diff) |
[Prompts] Woaw.. Et voilà ! Now it colorizes only the *EFFECTIVE* git hash
Diffstat (limited to '01_Internal.zsh')
-rw-r--r-- | 01_Internal.zsh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/01_Internal.zsh b/01_Internal.zsh index f11a2bc..b8bec64 100644 --- a/01_Internal.zsh +++ b/01_Internal.zsh @@ -164,6 +164,8 @@ __get_git_branch () fi fi + my_git_branch="→"$my_git_branch"←" + # Rebase in progress ? if [ -d $GIT_DIR/rebase-merge -o -d $GIT_DIR/rebase-apply ] then @@ -187,7 +189,6 @@ __get_git_branch () last=$(cat $REBASE_DIR/last) fi - # Then the result my_git_branch="[$current/$last: "$(git name-rev --name-only "$(cat $REBASE_DIR/onto 2>/dev/null)" 2>/dev/null | __cleanup_git_branch_name)".."$(echo $my_git_branch)"]" [ -r $REBASE_DIR/head-name ] && my_git_branch=$my_git_branch" "$(< $REBASE_DIR/head-name sed 's/^refs\///;s/^heads\///') else @@ -195,11 +196,6 @@ __get_git_branch () [ ! "$checkouted_branch" ] && my_git_branch="($my_git_branch)" fi - if [ "$(git status 2>&- | grep "new file" | head -n1)" != "" ] ; then - # ADDED FILES - my_git_branch=$my_git_branch - fi - echo " "$my_git_branch } |