Created
March 26, 2019 00:48
-
-
Save tonejito/4598f0f85e36b40db6fa1831c9a8894b to your computer and use it in GitHub Desktop.
Append @docker logout to ~/.bash_logout
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 | |
# https://docs.docker.com/engine/reference/commandline/login/ | |
# https://docs.docker.com/engine/reference/commandline/logout/ | |
BASH_LOGOUT=~/.bash_logout | |
grep "docker logout" ${BASH_LOGOUT} | |
test -e ${BASH_LOGOUT} -a "$?" -eq 0 || echo "docker logout" | tee -a ${BASH_LOGOUT} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment