summaryrefslogtreecommitdiffstats
path: root/git-radar
diff options
context:
space:
mode:
authorGrigory Petrov <grigory.v.p@gmail.com>2015-08-26 14:30:13 +0300
committerGrigory Petrov <grigory.v.p@gmail.com>2015-08-26 14:30:13 +0300
commit0fe65ed830b5d1cdc5189230139b52f4c8aacfbc (patch)
treeea98b0ef90d2982f4fb44de448eafa3b2bb1c1ba /git-radar
parenta93a5552ccb967cfc3b036e4adcecd78dc22ae0f (diff)
downloadgit-sonar-0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.tar.gz
git-sonar-0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.zip
bash prompt length fix: zero-length chars must be placed between \[ and \]
Diffstat (limited to 'git-radar')
-rwxr-xr-xgit-radar32
1 files changed, 16 insertions, 16 deletions
diff --git a/git-radar b/git-radar
index f194557..20a15c1 100755
--- a/git-radar
+++ b/git-radar
@@ -13,22 +13,22 @@ fi
dot="$(cd "$(dirname "$([ -L "$0" ] && $READLINK_CMD -f "$0" || echo "$0")")"; pwd)"
if [[ -z $@ ]]; then
- _git="\033[1;30mgit:(\033[0m"
- _master="\033[0;37mmaster\033[0m"
- _my_branch="\033[0;37mmy-branch\033[0m"
- _endgit="\033[1;30m)\033[0m"
- _untracked="\033[1;37mA\033[0m"
- _added_staged="\033[1;32mA\033[0m"
- _modified_unstaged="\033[1;31mM\033[0m"
- _local_up="\033[1;32m↑\033[0m"
- _2_from_master="\xF0\x9D\x98\xAE 2 \033[1;31m→\033[0m "
- _diverged_from_master="\xF0\x9D\x98\xAE 2 \033[1;33m⇄\033[0m 3 "
- _not_upstream="upstream \033[1;31m⚡\033[0m "
- _detached="\033[0;37mdetached@94eac67\033[0m"
- _conflicted_us="\033[1;33mU\033[0m"
- _conflicted_them="\033[1;33mT\033[0m"
- _ahead_master="\xF0\x9D\x98\xAE \033[1;32m←\033[0m"
- _local_diverged="\033[1;33m⇵\033[0m"
+ _git="\[\033[1;30m\]git:(\[\033[0m\]"
+ _master="\[\033[0;37m\]master\[\033[0m\]"
+ _my_branch="\[\033[0;37m\]my-branch\[\033[0m\]"
+ _endgit="\[\033[1;30m\])\[\033[0m\]"
+ _untracked="\[\033[1;37m\]A\[\033[0m\]"
+ _added_staged="\[\033[1;32m\]A\[\033[0m\]"
+ _modified_unstaged="\[\033[1;31m\]M\[\033[0m\]"
+ _local_up="\[\033[1;32m\]↑\[\033[0m\]"
+ _2_from_master="\xF0\x9D\x98\xAE 2 \[\033[1;31m\]→\[\033[0m\] "
+ _diverged_from_master="\xF0\x9D\x98\xAE 2 \[\033[1;33m\]⇄\[\033[0m\] 3 "
+ _not_upstream="upstream \[\033[1;31m\]⚡\[\033[0m\] "
+ _detached="\[\033[0;37m\]detached@94eac67\[\033[0m\]"
+ _conflicted_us="\[\033[1;33m\]U\[\033[0m\]"
+ _conflicted_them="\[\033[1;33m\]T\[\033[0m\]"
+ _ahead_master="\xF0\x9D\x98\xAE \[\033[1;32m\]←\[\033[0m\]"
+ _local_diverged="\[\033[1;33m\]⇵\[\033[0m\]"
echo "git-radar - a heads up display for git"
echo ""
echo "examples:"