/bash-ps1-themes

:rainbow: Bash PS1 themes with color gradients

Primary LanguageShellMIT LicenseMIT

Bash PS1 Themes 🌈

Themes for the PS1 bash environment variable, with a color gradient feature.

How to use

For persistent use, copy the theme's source in your .bashrc.

The theme files have export PS1=... at the end, so they only need to be executed to apply the theme to the current shell.

See themes in ./themes/, try them out by using source ./themes/Dark-red/dark_red_1

Works only in Bash shells, incompatible with zsh.

Examples

Find more examples in the themes/ folders.

original_grad

teal_theme

magenta_grad

red_theme

teal_light_theme

image

How it works

To generate gradients with Bash colors, the grad() function spreads x consecutive color ids across a word, starting at a certain color id.

Usage: $(grad 83 6 "localhost")

image