In this category you’ll find various options regarding the prompt style and colors.
Figure 6.1: Style Settings
Figure 6.2: Style Settings (continuation)
This is the master switch that will let BashStyle-NG modify your prompts according to your choices in the Style and Advanced Options. Other categories have their own master switches and work independently.
If active the user will be presented with fancy colorful prompts, else the they will be monochrome. For terminals that can handle 256 (or more) colors a variety of different shades of blue, green, red and more are pre-defined and used. If on a terminal that can’t handle those (eg. the Linux console) those shades are set to their base color (so all shades of blue become the default blue and so on), thus ensuring full compatibility with all terminals.
BashStyle-NG provides the following color definitons
for all terminals. The following color definitions are only available on terminals that support 256 (or more) colors, else they are definied to the closest match from the above list.
For prompt parts the following variables are declared that contain one of the color definitions for easier re-coloring of the prompts
All of the above definitions are available in echo -e friendly varaints
with a prepended e, for example ewhite or eiceblue. For
LS_COLORS compatibility they are prepended with a l, for example
lred or lorange.
If this is enabled black/eblack will turn white, so the text stays
visible, if this is disabled then white/ewhite will black instead.
The user input at the prompt will be colored with a random color after every prompt reload.
The Randomly colored text option will not reset the color before any
command’s output is display. This can be achieved by activating this option.
Bash is capable of drawing the colors in different ways
Your choice here effects a all prompt styles and most scripts provided by BashStyle-NG.
This sets the color for the for text (ignored if random colored text is enabled)
This sets the color for the date in prompts.
This sets the color for the time in prompts.
This sets the color for the username in prompts.
This sets the color for the hostname in prompts.
This sets the color for the current directory in prompts.
This sets the color for the machine’s uptime in prompts.
This sets the color for prompt parts that separate the other prompt parts from each other.
This sets the color for misc. prompt parts, like external command output.
This sets the color for the PS0 sub prompt.
This sets the color for the PS2 sub prompt.
This sets the color for the PS3 sub prompt.
This sets the color for the PS4 sub prompt.
This sets the prompt style for PS1, one of
Use None if you want to leave PROMPT_COMMAND and PS1 unset,
eg.: when using something else, like Liquid Prompt to create the prompt.
This sets a random prompt style for PS1 from the list of available styles
on each new Bash session.
The ls command allows for colored output according to the LS_COLORS
environment variable. Activating this will colorify ls output, respectively
enforcing it to be monochrome. Overrides operating system default.
The character(s) to use to indicate PS0 (displayed by interactive shells
after reading a command and before the command is executed).
The character(s) to use to indicate PS2 (continuation prompt).
The character(s) to use to indicate PS3 (prompt for select command).
The character(s) to use to indicate PS4 (execution trace prompt).
The character(s) used in several prompt styles to separate different prompt parts.
The character(s) used to indicate that the current working directory has been
truncated due it’s length in the PS1 prompt.
The maximum length of the current working directory before it gets truncated to
it’s length in the PS1 prompt. Applies to both prompt styles and the
truncpwd Bash script.
The following settings only apply to the Separator prompt style.
Display number of visible files in the current working directory in the prompt.
Display the machine’s uptime in the prompt.
Display the size of visible files in the current working directory in the prompt.
Display the terminal device in the prompt (prettified).
Display the number of running jobs in the prompt.
Display load average for the last five minutes in the prompt.
Display the battery load status using ACPI in the prompt.
Display the RAM status, either
in the prompt.
The following settings only apply to the Equinox prompt style.
Display load average for the last five minutes in the prompt.
Display current CPU load in the prompt.
Display the number of running jobs in the prompt.
Display the RAM status (free and used) in the prompt.
Display last run command and whether it was executed succesful or not in the prompt.
Display the machine’s uptime i
Displays the branch, revision and action of a git repository, if the current directory is the root directory of a git repositor.