support docker-machine use

This commit is contained in:
Jephté Clain 2018-11-12 16:36:58 +04:00
parent e6be47eb32
commit 3293d09e90
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ if [ -n "$UTOOLS_BASH_PROMPT" ]; then
local cvs svn git pff uinst woinst suffix p="$PWD"
if [ -n "$UTOOLS_AUTO" ]; then
PS1=
if [ "$DOCKER_MACHINE_WRAPPED" == true -a -n "$DOCKER_MACHINE_NAME" ]; then
PS1="DK-|$DOCKER_MACHINE_NAME|"
fi
while [ "$p" != "$HOME" -a "$p" != "" ]; do
if [ -z "$cvs" -a -d "$p/CVS" ]; then
PS1="${PS1:+$PS1,}cvs$suffix"