Download:
child 124:ab03eded7111
parent 122:ff58d0c807dd
123:6a444ba3ef7a
Anton Shestakov <av6@dwimlabs.net>, Sun, 24 Jul 2016 11:51:21 +0800
.bash_prompt: use HGPLAIN=1 for prompts

1 файлов изменено, 2 вставок(+), 2 удалений(-) [+]
.bash_prompt file | annotate | diff | comparison | revisions
--- a/.bash_prompt Mon Jul 11 07:39:52 2016 +0800
+++ b/.bash_prompt Sun Jul 24 11:51:21 2016 +0800
@@ -67,9 +67,9 @@
function _set_hg_info {
if [[ $USE_HG_PROMPT ]] ; then
local PROMPT_TEMPLATE="${P}{branch|quiet}{${Rd}{closed}}${P}☿{rev}{${B}+{tags|quiet|+}}{${Gd}*{bookmark}}{${R}{update}}{${G}+{rev|merge}}${R}{status|modified}${RESET}"
- HG_INFO=" $(hg prompt $PROMPT_TEMPLATE)"
+ HG_INFO=" $(HGPLAIN=1 hg prompt $PROMPT_TEMPLATE)"
else
- local SUM=$(LC_ALL=C hg sum 2>/dev/null)
+ local SUM=$(HGPLAIN=1 hg sum 2>/dev/null)
local PARENTS=($(grep -Po '(?<=parent: ).*(?=:)' <<< "$SUM"))
local BRANCH=$(grep -Po '(?<=branch: ).*$' <<< "$SUM")
local COMMIT=$(grep -Po '(?<=commit: ).*$' <<< "$SUM")