Download:
child 132:f5a8f3d36842
parent 130:2f67db7c1de5
131:642440fd7edb
Anton Shestakov <av6@dwimlabs.net>, Sat, 29 Oct 2016 10:58:50 +0800
.bash_prompt: don't just replace "default" with nothing ("default-is-good")

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
.bash_prompt file | annotate | diff | comparison | revisions
--- a/.bash_prompt Sat Aug 13 02:38:07 2016 +0800
+++ b/.bash_prompt Sat Oct 29 10:58:50 2016 +0800
@@ -78,8 +78,8 @@
local REV=${PARENTS[0]}
local MERGEREV=${PARENTS[1]}
- BRANCH=${BRANCH/default/}
[ -z "$MERGEREV" ] || MERGEREV="+$MERGEREV"
+ if [[ $BRANCH = 'default' ]] ; then BRANCH='' ; fi
case "$COMMIT" in
*'(clean)'*)
COMMIT=''