Download:
child 4:2fb825b3c3ef
parent 2:9c916e36d032
3:cb307dcaf2ef
Anton Shestakov <engored@ya.ru>, Sun, 02 Jan 2011 17:15:23 +0800
More quotes.

1 файлов изменено, 6 вставок(+), 6 удалений(-) [+]
.bash_prompt file | annotate | diff | comparison | revisions
--- a/.bash_prompt Sun Jan 02 17:08:25 2011 +0800
+++ b/.bash_prompt Sun Jan 02 17:15:23 2011 +0800
@@ -15,23 +15,23 @@
local PROMPT_TEMPLATE="$P{branch|quiet}@{rev}{$R{update}}{$G+{rev|merge}}$R{status|modified}"
if [[ ${EUID} == 0 ]] ; then
- local PROMPT_COLOR=$R
+ local PROMPT_COLOR="$R"
# getting hg info is disabled for root
local MISC_INFO=" $P-"
else
- local PROMPT_COLOR=$G
+ local PROMPT_COLOR="$G"
# testing if current dir is a part of hg repo
- local TEST_DIR=$PWD
+ local TEST_DIR="$PWD"
while true ; do
- [[ -d $TEST_DIR/.hg ]] && local TRACKED=1 && break
- [[ $TEST_DIR == '/' ]] && break
+ [[ -d "$TEST_DIR/.hg" ]] && local TRACKED=1 && break
+ [[ "$TEST_DIR" == '/' ]] && break
TEST_DIR=$(dirname "$TEST_DIR")
done
- if [[ $TRACKED ]] ; then
+ if [[ "$TRACKED" ]] ; then
local MISC_INFO=" $(hg prompt $PROMPT_TEMPLATE)"
fi
fi