Skip to content

Instantly share code, notes, and snippets.

Created July 13, 2016 16:58
Show Gist options
  • Save anonymous/775a1070bbb64b4f09907705cbd51413 to your computer and use it in GitHub Desktop.
Save anonymous/775a1070bbb64b4f09907705cbd51413 to your computer and use it in GitHub Desktop.
if [ -z "$WP" ]; then
# $WP is empty... you are not in a chroot workspace
export PS1="\033[0;31m"$PS1"\033[0m"
else
# $WP contains the name of the project you're currently in
export PS1="\033[0;37m"$WP": "$PS1"\033[0m"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment