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
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 |