Configuring your terminal’s colorscheme depends on what program you use as a terminal on macOS. We recommend iTerm2 (https://iterm2.com/), which comes with Solarized preinstalled. Find it in the Preferences menu.
On Windows, we recommend MobaXTerm (http://mobaxterm.mobatek.net/). MobaXTerm has a solarized colorscheme built into the settings as well.
If you’re on Linux, each terminal emulator has its own way to change the colorscheme. You might be able to find it in the settings yourself, otherwise Google or ask a friend.
Colors in the terminal are configured by sending a special invisible character
to the terminal. You can get these characters using the tput
command. I’ve
put those characters (along with ‘[’ and ‘]’ characters, which are only
necessary when you use them in PS1) into these variables for convenience.
For sanity’s sake, we’re separating the components of the prompt into separate
variables. PS1_RETVALUE
is a string that contains a command to run that
inspects the exit status of the last command run (which is stored in $?
) and
outputs either a green :)
or a yellow D:
accordingly.