Created
June 12, 2018 11:09
-
-
Save xhalo32/d68e9ee2625f799293fa65159233262b to your computer and use it in GitHub Desktop.
Docker-machine PS1 shell script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROMPT_COMMAND="\[ \! -z \"\${DOCKER_MACHINE_NAME}\" \] && { _PS1_DOCKER_MACHINE_PREFIX=\"(\$DOCKER_MACHINE_NAME) \"; } || { _PS1_DOCKER_MACHINE_PREFIX=''; }" | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;90m\]`echo "$_PS1_DOCKER_MACHINE_PREFIX"`\[\033[01;00m\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment