Bash Colors and Content in Linux Terminal Prompt

The PS1 Bash Environment Variable The command prompt and terminal appearance are governed by an environment variable called PS1. According to the Bash man page, PS1 represents the primary prompt string which is displayed when the shell is ready to read a command. The allowed content in PS1 consists of several backslash-escaped special characters whose meaning is listed in the PROMPTING section of the …