No description
Find a file
2023-10-29 18:00:18 +01:00
LICENSE first commit 2022-10-20 22:12:58 +02:00
README.md fix(README): remove assertion based on bugged tests 2023-10-29 18:00:18 +01:00
solid-demo.png adds a README 2022-10-22 23:20:51 +02:00
solid-long.png screenshot over black 2022-10-31 14:42:57 +01:00
solid.theme feat: supports LP 2.2.0 2023-10-29 17:45:45 +01:00

Solid — A Liquid Prompt Theme

Solid is a didactic theme for Liquid Prompt.

Its aim is not to actually be used as a day-to-day prompt (but you do you), but to expose everything that Liquid Prompt actually watches. It thus shows a table with the full state of the system, as seen by Liquid Prompt.

So far, Solid works for modern shells, supporting associative arrays (that is Bash > 4.0, and Zsh > 3.1.6). Note that Liquid Prompt does not have this requirement, so it may work on your system, while Solid does not.

Preview

image

image

Rationale

The solid theme displays (almost) all the information that Liquid Prompt can display. All variables are always displayed at the very same location, so that you may always see their state. That way, you can explore and understand how Liquid Prompt actually react to your system's state, which may be especially useful if you are a theme designer.

Explanations

Each element of the table is a label, followed by a colon and a field. The field can be either a boolean flag ("◌"=false, "●"=true), or a fixed-size entry (between squared brackets).

Entries can show numbers (always left-aligned), texts or be filled by a "/" character. This last state indicates that the configuration is explicitely asking for the field to not be displayed (i.e. the LP_ENABLE_* variable is set to 0).

If the field is shown in the base color (violet, by default), it would normally not be displayed in the Liquid Prompt's default theme; else, it is displayed in green. If the field content is important or indicates a potentially dangerous state, it is displayed in yellow.

Install

Just download this repository somewhere, source the theme file and activate the theme from your shell configuration file.

For example (just use ~/.zshrc instead of ~/.bashrc, if you use Zsh and not Bash):

git clone https://github.com/nojhan/lp-neon.git
echo '# Use Liquid Prompt only if in an interactive shell
    if [[ $- == *i* ]]; then
        # Use Liquid Prompt
        source ~/.liquidprompt
        # Use the solid theme if it has been downloaded in ~.
        if [[ -f ~/lp-solid/solid.theme ]] ; then
            source ~/lp-solid/solid.theme && lp_theme solid
        fi
    fi' >> ~/.bashrc

Configuration

TODO