The .profile in Cygwin
We have seen a few things about the .profile while customizing the Cygwin terminal. Here are the remaining sections of the file.
Prompt
export PS1=”\[\e]2;\u@\h:\w\007$green\]\u@\h:\[$pink\]\w\[$blue\]$ \[$BLUE\]”
The PS1 is a defined environment variable that determines how a prompt should behave. It stands for “Prompt Settings”. There are three variables \u, \h, and a \w. \u is the username, \h is the hostname, \w is the complete path of the working directory. The pre-defined colors $green, $pink, $blue, $BLUE (set in the .profile shown) specify the color of the display immediately following. Notice that PS1 seems to have a repetition of \u, \h and …read more




