In this category you’ll find various options regarding the prompt style and colors.
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.
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.
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.
Using the less
pager it’s easily possible to colorize manual pages. This
master switch enforces man pages to be read using less
and applys your
color choices.
This sets the color for the manpage infobar at the bottom.
This sets the color for the manpage body text.
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.
This master switch allows you to choose the color in which grep hilights it’s matches found.
This sets the color in which grep hilights it’s matches found.
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 default font color for user input at the 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
This sets a random prompt style for PS1
from the list of available styles
on each new Bash session.
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 in the prompt.
Settings for Bash version 4.4 or newer
The character(s) to use to indicate PS0
.
This sets the color for the PS0 sub prompt.