Browse Source

shrc: Fix PROMPT_COMMAND setup

pull/15/head
10sr 9 years ago
parent
commit
c66ac3cfad
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      shrc

+ 2
- 3
shrc View File

@@ -1309,10 +1309,9 @@ then
eval __my_set_title ${__terminal_title}
}
else
#echo "abc${PROMPT_COMMAND}def"
if ! expr "$PROMPT_COMMAND" : ".*;$" >/dev/null
if test -n "$PROMPT_COMMAND" && ! expr "$PROMPT_COMMAND" : '.*; *$' >/dev/null
then
$PROMPT_COMMAND="${PROMPT_COMMAND};"
PROMPT_COMMAND="${PROMPT_COMMAND};"
fi

if test -n "$PROMPT_COMMAND"


Loading…
Cancel
Save