Go to file
2023-08-21 23:42:22 +08:00
.gitignore import #2226663 2023-08-21 23:42:22 +08:00
bash-color-prompt.sh import #2226663 2023-08-21 23:42:22 +08:00
COPYING import #2226663 2023-08-21 23:42:22 +08:00
README.md import #2226663 2023-08-21 23:42:22 +08:00
shell-color-prompt.spec import #2226663 2023-08-21 23:42:22 +08:00
sources import #2226663 2023-08-21 23:42:22 +08:00

Simple colored bash prompt

The prompt color theme can be customized simply by setting the PROMPT_COLOR envvar.

For example PROMPT_COLOR='2;7' is dim inverse-video and PROMPT_COLOR='1;33;53' is bright/bold yellow with overline.

Set prompt_color_force to force usage/updating of color PS1: by default it is only setup cautiously if $TERM ends in "color" and PS1 is the fedora default.

References

See https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters etc for the ANSI codes.