BashStyle-NG user documentation: Style Options

Next: Aliases, Previous: First Start, Up: Top

## 6 Style Options

In this category you’ll find various options regarding the prompt style and colors.

### Basic

Setting: Use BashStyle-NG

  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.

Setting: Colored Prompts

  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.

Setting: Colors

  BashStyle-NG provides the following color definitons

  - black
  - red
  - green
  - yellow
  - blue
  - magenta
  - cyan
  - white

  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.

  - coldblue
  - smoothblue
  - iceblue
  - turqoise
  - smoothgreen
  - winered
  - brown
  - silver
  - ocher
  - orange
  - purple
  - pink
  - cream

  For prompt parts the following variables are declared that contain one of the color definitions for easier re-coloring of the prompts

  - color_user
  - color_host
  - color_date
  - color_time
  - color_wdir
  - color_font
  - color_separator
  - color_uptime
  - color_ps
  - color_ps2
  - color_ps3
  - color_ps4

  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.

### Colors

Setting: Colored ls output

  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.

Setting: Choose Color Style

  Bash is capable of drawing the colors in different ways

  - Normal
  - Bright (equals to bold)
  - Dimmed
  - Inverted
  - Underlined

  Your choice here effects a all prompt styles and most scripts provided by BashStyle-NG.

Setting: Colored manpages

  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.

Setting: Color for manpage infobar

  This sets the color for the manpage infobar at the bottom.

Setting: Color manpage body text

  This sets the color for the manpage body text.

Setting: Randomly colored text

  The user input at the prompt will be colored with a random color after every prompt reload.

Setting: Normal text color for output

  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.

Setting: Colored grep output

  This master switch allows you to choose the color in which grep hilights it’s matches found.

Setting: Choose grep color

  This sets the color in which grep hilights it’s matches found.

Setting: Color for Date

  This sets the color for the date in prompts.

Setting: Color for Time

  This sets the color for the time in prompts.

Setting: Color for Username

  This sets the color for the username in prompts.

Setting: Color for Hostname

  This sets the color for the hostname in prompts.

Setting: Color for Workdir

  This sets the color for the current directory in prompts.

Setting: Color for Uptime

  This sets the color for the machine’s uptime in prompts.

Setting: Color for Separators

  This sets the color for prompt parts that separate the other prompt parts from each other.

Setting: Color for Misc. Elements

  This sets the color for misc. prompt parts, like external command output.

Setting: Color for Text

  This sets the default font color for user input at the prompt.

Setting: Color for PS2

  This sets the color for the PS2 sub prompt.

Setting: Color for PS3

  This sets the color for the PS3 sub prompt.

Setting: Color for PS4

  This sets the color for the PS4 sub prompt.

### Style

Setting: Choose Promptstyle

  This sets the prompt style for `PS1`, one of

  - Separator
  - Vector
  - Floating Clock
  - Equinox
  - Elite
  - Poweruser
  - Dirks
  - Dot.Prompt
  - Sepa-NG
  - Quirk
  - Sputnik
  - Ayoli

Setting: Use random style

  This sets a random prompt style for `PS1` from the list of available styles on each new Bash session.

Setting: PS2

  The character(s) to use to indicate `PS2` (continuation prompt).

Setting: PS3

  The character(s) to use to indicate `PS3` (prompt for `select` command).

Setting: PS4

  The character(s) to use to indicate `PS4` (execution trace prompt).

Setting: Separator

  The character(s) used in several prompt styles to separate different prompt parts.

Setting: PWD cut char

  The character(s) used to indicate that the current working directory has been truncated due it’s length in the `PS1` prompt.

Setting: Maximum PWD length

  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.

### Separator

The following settings only apply to the Separator prompt style.

Setting: Display number of files

  Display number of visible files in the current working directory in the prompt.

Setting: Display uptime

  Display the machine’s uptime in the prompt.

Setting: Display size of files

  Display the size of visible files in the current working directory in the prompt.

Setting: Display number of the tty

  Display the terminal device in the prompt (prettified).

Setting: Display number of running jobs

  Display the number of running jobs in the prompt.

Setting: Display system load

  Display load average for the last five minutes in the prompt.

Setting: Display battery load

  Display the battery load status using `ACPI` in the prompt.

Setting: Display Memory

  Display the RAM status, either

  - Free Memory
  - Used Memory
  - Both

  in the prompt.

Next: Aliases, Previous: First Start, Up: Top