Daniel Lemire's blog

, 2 min read

Color terminal under Mac OS X

4 thoughts on “Color terminal under Mac OS X”

  1. Peter Turney says:

    FYI, here is my PS1:

    export PS1=”[[e[33m]u@H [e[32m]w[e[0m]]n[[e[31m]![e[0m]] > ”

  2. phil says:

    I’m pretty sure that in the normal course of events, bash reads your .bash_profile on login. Most .bash_profile files then source the .bashrc

    Ex .bash_profile:

    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc

  3. whiteknight says:

    login shells read .bash_profile
    non login shells read .bashrc

  4. Seth says:

    This worked perfectly! Thank you very much for the clear write-up and great color scheme.