Skip to content

Instantly share code, notes, and snippets.

@useless-stuff
Created July 23, 2019 09:02
Show Gist options
  • Save useless-stuff/059b4d3be83593e39e6410b49d14c1b2 to your computer and use it in GitHub Desktop.
Save useless-stuff/059b4d3be83593e39e6410b49d14c1b2 to your computer and use it in GitHub Desktop.
Bash profile for docker containers
#!/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