Created
July 23, 2019 09:02
-
-
Save useless-stuff/059b4d3be83593e39e6410b49d14c1b2 to your computer and use it in GitHub Desktop.
Bash profile for docker containers
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
#!/usr/bin/env bash | |
default='\033[0;m' | |
green='\033[0;32m' | |
magenta='\033[0;35m' | |
cyan='\033[0;36m' | |
yellow='\033[33m' | |
containerDetails(){ | |
echo -e " ${yellow}${IMAGE_NAME}:${BUILD_VERSION}${default}" | |
} | |
export PS1="${cyan}\h ${magenta}\u ${green}\w\$(containerDetails)${default} \n\\$ \[$(tput sgr0)\]" | |
source ${WORKDIR}/environment | |
source ${WORKDIR}/assets/info.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment