Skip to content

Commit e82e3f9

Browse files
Fix __drush_ps1 so that prompt is cleared after unuse.
1 parent 2816c98 commit e82e3f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drush.complete.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ __drush_ps1() {
1212
f="${TMPDIR:-/tmp/}/drush-env/drush-drupal-site-$$"
1313
if [ -f $f ]
1414
then
15-
DRUPAL_SITE=$(cat "$f")
15+
__DRUPAL_SITE=$(cat "$f")
16+
else
17+
__DRUPAL_SITE="$DRUPAL_SITE"
1618
fi
1719

18-
[[ -n "$DRUPAL_SITE" ]] && printf "${1:- (%s)}" "$DRUPAL_SITE"
20+
[[ -n "$__DRUPAL_SITE" ]] && printf "${1:- (%s)}" "$__DRUPAL_SITE"
1921
}
2022

2123
# Completion function, uses the "drush complete" command to retrieve

0 commit comments

Comments
 (0)