public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/shell-color-prompt] rawhide: retired in favor of bash-color-prompt
@ 2026-11-17 14:51 Jens Petersen
0 siblings, 0 replies; only message in thread
From: Jens Petersen @ 2026-11-17 14:51 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/shell-color-prompt
Branch : rawhide
Commit : a84201bc8f2c955ed90efe6d5ede68be75ce6f54
Author : Jens Petersen <petersen@redhat.com>
Date : 2026-11-17T22:51:25+08:00
Stats : +1/-1260 in 16 file(s)
URL : https://src.fedoraproject.org/rpms/shell-color-prompt/c/a84201bc8f2c955ed90efe6d5ede68be75ce6f54?branch=rawhide
Log:
retired in favor of bash-color-prompt
---
diff --git a/.fmf/version b/.fmf/version
deleted file mode 100644
index d00491f..0000000
--- a/.fmf/version
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 56e8ffd..0000000
--- a/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/bash-color-prompt.sh
diff --git a/COPYING b/COPYING
deleted file mode 100644
index d159169..0000000
--- a/COPYING
+++ /dev/null
@@ -1,339 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 15b862b..0000000
--- a/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-bash-color-prompt.sh: bash-color-prompt.sh.in gen.m4
- m4 gen.m4 $< > $@
-
-timestamp:
- cp -p bash-color-prompt.sh bash-color-prompt.sh.$(shell date "+%FT%T")
-
-check:
- cd tests/bats && make check
diff --git a/README.md b/README.md
deleted file mode 100644
index c5acddc..0000000
--- a/README.md
+++ /dev/null
@@ -1,349 +0,0 @@
-# Simple colored bash prompt
-
-Defined in `/etc/profile.d/bash-color-prompt.sh`
-
-(The latest version of this file lives at:
-<https://src.fedoraproject.org/rpms/shell-color-prompt>)
-
-The prompt color theme can be customized simply with
-the `prompt_color` function, and optionally `prompt_dir_color`.
-`prompt_highlight` affects the userhost and directory parts
-of the prompt, but not their separator (`prompt_separator`).
-
-For example `prompt_color '33;44'` gives yellow on a blue background.
-`prompt_highlight '1;7'` gives bold inverse-video
-
-The `prompt_dir_color` function similarly changes the color of
-the working directory, which otherwise defaults to the `prompt_color` setting.
-
-Since 0.6 coloring is inherited from the left:
- PROMPT_HIGHLIGHT -> PROMPT_COLOR -> (PROMPT_SEPARATOR_COLOR) ->
- PROMPT_DIR_COLOR -> (PROMPT_SEPARATOR_COLOR) -> PROMPT_GIT_COLOR
-
-Note `prompt_separator_color` is specific to the separators
-between user-host and directory (and optionally git-branch if setup by user).
-
-bash-color-prompt should not use any subprocesses in its default configuration.
-
-## Coloring Examples
-
-```shell
-$ prompt_color 0 # disable colors/attribs
-$ prompt_color 1 # bold prompt
-$ prompt_color 2 # dim prompt
-$ prompt_color 4 # underline prompt
-$ prompt_color '2;7' # dim reverse video
-$ prompt_color '42' # green background
-$ prompt_color '53' # overline separator
-$ prompt_color '1;33;44' # bold yellow on blue
-$ prompt_color '43;30' # black on yellow
-$ prompt_color '1;32' # bold green
-```
-
-See <https://en.wikipedia.org/wiki/ANSI_escape_code#SGR> for ANSI code details.
-
-## Shell Color Prompt configuration functions
-
-Although for basic configuration setting the aforementioned environment
-variables is fine and continues to work dynamically, in the long term
-and for a more consistent experience the functions below are recommended
-and should behave better. (However note that at least until version 1.0
-these functions are still subject to change, though we will try to avoid
-breakage.)
-
-You can see the definitions in `/etc/profile.d/bash-color-prompt.sh`.
-
-Example usage (in `~/.bashrc`):
-```
-# this should source bash-color-prompt.sh
-source /etc/bashrc
-
-prompt_os_color 107
-prompt_highlight 1\;7
-prompt_dir_color 33
-prompt_container $USER
-prompt_git_color 35
-```
-
-Descriptions of the available functions:
-
-### `prompt_highlight()`
-_(since 0.5)_
-
-Sets `PROMPT_HIGHLIGHT` to bold or the specified "highlighting".
-```
-$ prompt_highlighting 2
-```
-
-### `prompt_color()`
-_(since 0.5)_
-
-Sets `PROMPT_COLOR` to the default color for user or root or
-the specified color code(s):
-```
-$ prompt_color 33
-```
-
-### `prompt_default_highlight()`
-_(since 0.5)_
-
-Sets `PROMPT_HIGHLIGHT` bold *only* for GNOME or specified "highlighting".
-
-### `prompt_separator_color()`
-(since 0.6)
-
-Sets `PROMPT_SEPARATOR_COLOR`.
-
-### `prompt_dir_color()`
-_(since 0.5)_
-
-Sets `PROMPT_DIR_COLOR` or unsets if no argument.
-```
-$ prompt_dir_color 44
-```
-
-### `prompt_default_color()`
-_(since 0.5)_
-
-Sets up default coloring (theme)
-
-Specifically it runs `prompt_color`, `prompt_default_highlight`,
-`prompt_separator_color`, and unsets `PROMPT_DIR_COLOR`.
-
-### `prompt_default_format()`
-_(since 0.5)_
-
-Sets default format strings for `PROMPT_USERHOST`, `PROMPT_SEPARATOR`,
-`PROMPT_DIRECTORY`, and empty `PROMPT_START` & `PROMPT_END`.
-
-### `prompt_default()`
-_(since 0.3)_
-
-Runs `prompt_default_color` and `prompt_default_format`.
-
-### `prompt_os_color()`
-_(since 0.5)_
-
-Sets `PROMPT_COLOR` to `ANSI_COLOR` from `/etc/os-release`.
-
-### `prompt_separator()`
-(since 0.6)
-
-Sets `PROMPT_SEPARATOR`
-
-### `prompt_host_os()`
-(since 0.6)
-
-Sets `PROMPT_USERHOST` to try to identify host OS and version.
-
-### `prompt_no_userhost()`
-(since 0.6)
-
-Unsets `PROMPT_USERHOST`.
-
-### `prompt_container()`
-_(since 0.5)_
-
-Sets `PROMPT_CONTAINER` if `$container` is non-empty.
-
-### `prompt_container_host()`
-(since 0.6)
-
-Runs `prompt_container` and `prompt_host_os` if `$container` set,
-otherwise `prompt_no_userhost` for default `HOSTNAME` and `USER`.
-
-### `prompt_git_color()`
-(since 0.6)
-
-Sets `PROMPT_GIT_COLOR`.
-
-### `prompt_no_color()`
-_(since 0.5)_
-
-Unsets `PROMPT_COLOR`, `PROMPT_DIR_COLOR`, and `PROMPT_GIT_COLOR`.
-
-### `prompt_no_highlight()`
-_(since 0.5)_
-
-Unsets `PROMPT_HIGHLIGHT`.
-
-### `prompt_plain()`
-_(since 0.5)_
-
-Runs `prompt_no_color` and `prompt_no_highlight`.
-
-### `prompt_traditional_format()`
-_(since 0.5)_
-
-Sets the old Red Hat prompt format.
-
-### `prompt_traditional()`
-_(since 0.3)_
-
-Runs `prompt_plain` and `prompt_traditional_format`.
-
-### `prompt_reset_traditional_ps1()`
-_(since 0.5)_
-
-Completely resets `PS1` to the old Red Hat prompt.
-
-To restore bash-color-prompt PS1 one then needs to run `prompt_setup_color_ps1`.
-
-### `prompt_setup_color_ps1()`
-(since 0.5)
-
-This resets `PS1` to the default bash-color-prompt.
-
-### `prompt_default_setup()`
-(since 0.6)
-
-Sets up default bash-color-prompt settings without any terminal checks.
-
-### `prompt_default_setup_checked()`
-(since 0.6)
-
-Activates bash-color-prompt if enabled for terminal in Fedora.
-
-This is run by default in `/etc/profile.d/bash-color-prompt.sh` if not disabled.
-
-It first checks if `TERM` ends in "color" or is "linux" or
-since 0.7 whether `COLORTERM` is set.
-
-### `set_ansi()`
-(since 0.6.2)
-
-User convenience: for usage see the exit code display example below.
-
-Note this uses a subprocess.
-
-## Background details on the environment variables
-***Note their direct use is being deprecated and should not be relied on long-term***
-As far as possible use the above accessor functions.
-
-bash-color-prompt's PS1 has the following general structure:
-`[PROMPT_START]^PROMPT_USERHOST PROMPT_SEPARATOR PROMPT_DIRECTORY [PROMPT_GIT_BRANCH] ^[PROMPT_END]^`
-(`^` means color reset).
-
-### `PROMPT_START` (optional)
-Displayed at the start of the prompt.
-
-### `PROMPT_HIGHLIGHT`
-Prepended before `PROMPT_COLOR` after `PROMPT_START` .
-
-eg `PROMPT_HIGHLIGHT=1` makes prompt bold
-or `PROMPT_HIGHLIGHT=7` inverts prompt coloring
-
-### `PROMPT_USERHOST`
-Default: `PROMPT_USERHOST='\u@\h'`
-
-Color defaults to `PROMPT_COLOR`.
-
-See the PROMPTING section of `man bash` or
-*Controlling the Prompt* in `info bash` for
-the available backslash-escaped special characters.
-
-### `PROMPT_SEPARATOR`
-Default: `PROMPT_SEPARATOR=':'`
-
-eg you can change it to `'\n'` or `' \t\n'`
-
-Color is overriden by default by `PROMPT_SEPARATOR_COLOR`.
-
-### `PROMPT_DIRECTORY`
-Default: `PROMPT_DIRECTORY='\w'`
-
-eg can be changed to `'\W'`
-
-Defaults to `PROMPT_DIR_COLOR` if set otherwise `PROMPT_COLOR`.
-
-### `PROMPT_END`
-Displayed at the end of the prompt (before `\$`).
-
-## More examples
-
-### Traditional Red Hat prompt
-```
-PROMPT_START='['
-PROMPT_END=']'
-PROMPT_SEPARATOR=' '
-PROMPT_DIRECTORY='\W'
-PROMPT_COLOR='0'
-```
-
-Equivalent to `prompt_traditional`
-
-### Multiline prompt example
-```
-PROMPT_START='\t\n'
-PROMPT_COLOR='30;43'
-PROMPT_DIR_COLOR='44'
-PROMPT_SEPARATOR='\n'
-```
-You can also set `PS0='\t'` say to timestamp the start of commands.
-
-### Git branch integration example
-```
-function prompt_command {
- ref=$(/usr/bin/git rev-parse --abbrev-ref HEAD 2> /dev/null)
- PROMPT_GIT_BRANCH=${ref:+:$ref}
-}
-PROMPT_COMMAND=prompt_command
-```
-(It is considered better Bash practice to use an array for PROMPT_COMMAND.)
-
-### Terminal title
-Using bash `PROMPT_COMMAND` one can also set the terminal title with:
-```
-echo -n -e "\e]0;${PROMPT_USERHOST@P}${PROMPT_USERHOST:+:}${PROMPT_DIRECTORY}"
-```
-
-### Container support
-See `prompt_container` and `prompt_container_host` above.
-
-Basic container support can be setup with say:
-```
-PROMPT_CONTAINER='⬢'
-```
-
-### Show exit code for error in red
-```
-PROMPT_END="$(set_ansi 31)"'${?#0}'"$(set_ansi 0)"
-```
-
-## Sourcing
-Set `bash_color_prompt_force`
-(before sourcing `/etc/bashrc` or `bash-color-prompt.sh` directly)
-to turn on bash-color-prompt unconditionally (for an interactive bash shell),
-otherwise by default it is only setup for a bash shell
-if PS1 is the fedora or bash default *and*
-either `$TERM` ends in "color" (or is "linux")
-or since 0.7 if `COLORTERM` is set.
-
-
-For example:
-```shellsession
-if [ -t 0 ]; then
-bash_color_prompt_force=1
-source /etc/profile.d/bash-color-prompt.sh
-fi
-```
-can be added to `~/.bashrc` to turn on bash-color-prompt "everywhere".
-
-(Before 0.7 the variable was called `bash_prompt_color_force`.)
-
-## Disabling
-Set the `bash_color_prompt_disable` variable non-empty in `.bashrc` before
-sourcing `/etc/profile.d/*.sh` to prevent setting up bash-color-prompt
-(ie before sourcing `/etc/bashrc`).
-(Before 0.7 this variable was called `bash_prompt_color_disable`.)
-
-Since 0.7, the `NO_COLOR` environment variable (<https://no-color.org/>)
-is also respected, and results in a default monochrome prompt.
-One can set `BASH_PROMPT_USE_COLOR` to override this.
-
-## Contribute
-Please open issues against
-[shell-color-prompt](https://src.fedoraproject.org/rpms/shell-color-prompt)
-in bugzilla.
-
-shell-color-prompt is distributed under the GPL license version 2 or later.
diff --git a/TERMCOLOR.txt b/TERMCOLOR.txt
deleted file mode 100644
index adee58b..0000000
--- a/TERMCOLOR.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-# Color terminals
-
-(note that COLORTERM is exported and so inherited by children)
-
-Terminal TERM COLORTERM
--------- ---- ---------
-linux linux
-xterm xterm-256color
-lterm xterm
-emacs dumb
-screen screen.xterm-256color
-tmux tmux-256color
-
-cosmic-term xterm-256color truecolor
-gnome-console xterm-256color truecolor
-gnome-terminal xterm-256color truecolor
-guake xterm-256color truecolor
-konsole xterm-256color truecolor
-lxterm xterm-256color truecolor
-mate-terminal xterm-256color truecolor
-ptyxis xterm-256color truecolor
-qmlkonsole xterm-256color truecolor
-qterminal xterm-256color truecolor
-roxterm xterm-256color truecolor
-sakura xterm-256color truecolor
-tilda xterm-256color truecolor
-tilix xterm-256color truecolor
-yakuake xterm-256color truecolor
-
-cool-retro-term xterm truecolor (monochrome!)
-alacritty alacritty truecolor
-foot foot truecolor
-kitty xterm-kitty truecolor
-st st-256color truecolor
diff --git a/bash-color-prompt.sh.in b/bash-color-prompt.sh.in
deleted file mode 100644
index b014a17..0000000
--- a/bash-color-prompt.sh.in
+++ /dev/null
@@ -1,204 +0,0 @@
-# see /usr/share/doc/bash-color-prompt/README.md
-
-## to truncate \w dirpath set:
-# PROMPT_DIRTRIM=3
-
-# only for bash
-if [ -n "${BASH_VERSION}" -a -z "${bash_color_prompt_disable}" -a -z "${bash_prompt_color_disable}" ]; then
-
- # enable only in interactive shell
- case $- in
- *i*) ;;
- *) if [ -z "${bash_prompt_color_test}" ]; then return; fi;;
- esac
-
- # defines PS1 for color prompt
- prompt_setup_color_ps1() {
- PS1='${PROMPT_START@P}colorreset()colorvar(PROMPT_HIGHLIGHT)colorvar(PROMPT_COLOR)${PROMPT_CONTAINER}when(PROMPT_USERHOST,${PROMPT_USERHOST@P}when(PROMPT_SEPARATOR,colorreset()colorvar(PROMPT_SEPARATOR_COLOR)${PROMPT_SEPARATOR@P}when(PROMPT_SEPARATOR_COLOR,colorreset())colorvar(PROMPT_HIGHLIGHT)colorvar(PROMPT_COLOR)))colorvar(PROMPT_DIR_COLOR)${PROMPT_DIRECTORY@P}when(PROMPT_GIT_BRANCH,when(PROMPT_SEPARATOR,colorreset()colorvar(PROMPT_SEPARATOR_COLOR)${PROMPT_SEPARATOR@P}when(PROMPT_SEPARATOR_COLOR,colorreset())colorvar(PROMPT_HIGHLIGHT)colorvar(PROMPT_COLOR)colorvar(PROMPT_DIR_COLOR))colorvar(PROMPT_GIT_COLOR)${PROMPT_GIT_BRANCH@P})colorreset()${PROMPT_END@P}\$when(PROMPT_END,colorreset()) '
- }
-
- # sets default color or $1 can override
- prompt_color() {
- if [ -n "$1" ]; then
- PROMPT_COLOR="$1"
- else
- if [ "$USER" = "root" ]; then
- PROMPT_COLOR=35
- else
- PROMPT_COLOR=32
- fi
- fi
- }
-
- # sets prompt highlighting
- prompt_highlight() {
- PROMPT_HIGHLIGHT=${1:-1}
- }
-
- prompt_default_highlight() {
- if [ "$DESKTOP_SESSION" = "gnome" ]; then
- prompt_highlight "${1:-1}"
- else
- unset PROMPT_HIGHLIGHT
- fi
- }
-
- prompt_separator_color() {
- PROMPT_SEPARATOR_COLOR=$1
- }
-
- prompt_default_color() {
- prompt_color "$1"
- prompt_default_highlight
- prompt_separator_color
- unset PROMPT_DIR_COLOR
- unset PROMPT_GIT_COLOR
- }
-
- prompt_dir_color() {
- if [ -n "$1" ]; then
- PROMPT_DIR_COLOR="$1"
- else
- unset PROMPT_DIR_COLOR
- fi
- }
-
- # sets default prompt format
- prompt_default_format() {
- PROMPT_USERHOST='\u@\h'
- PROMPT_SEPARATOR=':'
- PROMPT_DIRECTORY='\w'
- PROMPT_START=''
- PROMPT_END=''
- }
-
- # sets default prompt color and format
- prompt_default() {
- prompt_default_color "$1"
- prompt_default_format
- }
-
- # sets color to OS ANSI_COLOR
- # $1 is appended to the (foreground) color
- prompt_os_color() {
- if [ -z "$ANSI_COLOR" ]; then
- eval local $(grep ANSI_COLOR /etc/os-release)
- fi
- PROMPT_COLOR="${ANSI_COLOR:2}${1:+;$1}"
- }
-
- prompt_separator() {
- PROMPT_SEPARATOR=$1
- }
-
- prompt_host_os() {
- eval local $(grep "\(^ID=\|VERSION_ID\|VARIANT_ID\)" /etc/os-release)
- case "$VARIANT_ID" in
- eln)
- PROMPT_USERHOST="$VARIANT_ID" ;;
- *)
- PROMPT_USERHOST="$ID$VERSION_ID" ;;
- esac
- }
-
- prompt_no_userhost() {
- unset PROMPT_USERHOST
- }
-
- prompt_container() {
- if [ -n "$container" ]; then
- PROMPT_CONTAINER="⬢ "
- else
- unset PROMPT_CONTAINER
- fi
- }
-
- prompt_container_host() {
- prompt_container
- if [ -n "$container" ]; then
- prompt_host_os
- else
- if [ "$HOSTNAME" = "${2:-fedora}" -a "$1" = "$USER" ]; then
- prompt_no_userhost
- fi
- fi
- }
-
- prompt_git_color() {
- PROMPT_GIT_COLOR=$1
- }
-
- # unsets colors
- prompt_no_color() {
- unset PROMPT_COLOR
- unset PROMPT_DIR_COLOR
- unset PROMPT_SEPARATOR_COLOR
- unset PROMPT_GIT_COLOR
- }
-
- # unsets highlighting
- prompt_no_highlight() {
- unset PROMPT_HIGHLIGHT
- }
-
- # unsets color and highlighting
- prompt_plain() {
- prompt_no_color
- prompt_no_highlight
- }
-
- # sets traditional Red Hat prompt style format
- prompt_traditional_format() {
- PROMPT_USERHOST='\u@\h'
- PROMPT_SEPARATOR=' '
- PROMPT_DIRECTORY='\W'
- PROMPT_START='['
- PROMPT_END=']'
- }
-
- # sets traditional Red Hat prompt style without color
- prompt_traditional() {
- prompt_plain
- prompt_traditional_format
- }
-
- # revert to traditional Red Hat prompt
- prompt_reset_traditional_ps1() {
- PS1="[\u@\h \W]\\$ "
- }
-
- prompt_default_setup() {
- prompt_color "$PROMPT_COLOR"
- prompt_default_highlight "$PROMPT_HIGHLIGHT"
- prompt_dir_color "$PROMPT_DIR_COLOR"
- prompt_container
- PROMPT_USERHOST="${PROMPT_USERHOST-\u@\h}"
- prompt_separator "${PROMPT_SEPARATOR-:}"
- prompt_separator_color "${PROMPT_SEPARATOR_COLOR}"
- PROMPT_DIRECTORY="${PROMPT_DIRECTORY-\w}"
- prompt_setup_color_ps1
- }
-
- prompt_default_setup_checked() {
- # only activate for color terminals and if PS1 unchanged from bash or fedora defaults
- if [ '(' "$PS1" = "[\u@\h \W]\\$ " -o "$PS1" = "\\s-\\v\\\$ " -o "${TOOLBOX_PATH}" = "/usr/bin/toolbox" ')' \
- -a '(' -n "${COLORTERM}" -o "${TERM: -5}" = "color" -o "${TERM}" = "linux" ')' \
- -o -n "${bash_color_prompt_force}" \
- -o -n "${bash_prompt_color_force}" ]; then
- prompt_default_setup
- if [ -n "${NO_COLOR}" -a -z "${BASH_PROMPT_USE_COLOR}" -o -n "${BASH_PROMPT_NO_COLOR}" ]; then
- prompt_highlight
- prompt_no_color
- fi
- fi
- }
-
- prompt_default_setup_checked
-
- BASH_COLOR_PROMPT_VERSION=@BASHCOLORVERSION@
-
- # user convenience
- set_ansi() {
- echo "\[\e[${1}m\]"
- }
-fi
diff --git a/dead.package b/dead.package
new file mode 100644
index 0000000..9cafba1
--- /dev/null
+++ b/dead.package
@@ -0,0 +1 @@
+retired in favor of bash-color-prompt
diff --git a/gen.m4 b/gen.m4
deleted file mode 100644
index 2b1ac33..0000000
--- a/gen.m4
+++ /dev/null
@@ -1,5 +0,0 @@
-define(`colornormal', `setcolor(39;49)')dnl
-define(`colorreset', `setcolor(0)')dnl
-define(`colorvar', `when($1,setcolor(${$1}))')dnl
-define(`setcolor', `\[\e[$1m\]')dnl
-define(`when', `${$1:+$2}')dnl
diff --git a/plans/bats.fmf b/plans/bats.fmf
deleted file mode 100644
index c1627f9..0000000
--- a/plans/bats.fmf
+++ /dev/null
@@ -1,5 +0,0 @@
-summary: Basic smoke test
-discover:
- how: fmf
-execute:
- how: tmt
diff --git a/shell-color-prompt.spec b/shell-color-prompt.spec
deleted file mode 100644
index 4521acf..0000000
--- a/shell-color-prompt.spec
+++ /dev/null
@@ -1,182 +0,0 @@
-# testsuite currently git clones bats libraries
-%bcond tests 0
-
-Name: shell-color-prompt
-Version: 0.7.1
-Release: 4%{?dist}
-Summary: Color prompt for bash shell
-
-License: GPL-2.0-or-later
-URL: https://github.com/juhp/bash-color-prompt
-Source0: bash-color-prompt.sh.in
-Source1: README.md
-Source2: COPYING
-Source3: Makefile
-Source4: gen.m4
-Source10: test.bats
-BuildArch: noarch
-BuildRequires: m4
-BuildRequires: make
-%if %{with tests}
-BuildRequires: bats
-BuildRequires: git-core
-BuildRequires: hostname
-%endif
-
-%description
-Default colored bash prompt.
-
-%package -n bash-color-prompt
-Summary: Color prompt for bash shell
-
-%description -n bash-color-prompt
-Default colored bash prompt.
-
-
-%prep
-%setup -c -T
-cp %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
-
-
-%build
-make
-sed -i -e "s/@BASHCOLORVERSION@/%{version}/" bash-color-prompt.sh
-
-
-%install
-%global profiledir %{_sysconfdir}/profile.d
-
-install -m 644 -D -t %{buildroot}%{profiledir} bash-color-prompt.sh
-
-
-%check
-%if %{with tests}
-mkdir -p tests
-cd tests
-cp %{SOURCE10} .
-BASH_COLOR_PROMPT_DIR=%{buildroot}%{profiledir} bats --timing --gather-test-outputs-in logs .
-%endif
-
-
-%files -n bash-color-prompt
-%license COPYING
-%doc README.md
-%{profiledir}/bash-color-prompt.sh
-
-
-%changelog
-* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
-
-* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
-
-* Mon Jan 05 2026 Jens Petersen <petersen@redhat.com>
-- update project url
-
-* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
-
-* Fri Jun 27 2025 Jens Petersen <petersen@redhat.com> - 0.7.1-1
-- slightly revert the terminal detection to avoid serial term regressions:
- still setup for COLORTERM but otherwise TERM must be "*color" or "linux"
- (#2352650)
-
-* Thu Jun 26 2025 Jens Petersen <petersen@redhat.com> - 0.7-1
-- enable bash-color-prompt for most terminals by default (#2352650)
-- respect NO_COLOR unless BASH_PROMPT_USE_COLOR is set (#2352650)
-- check also bash_color_prompt_disable and bash_color_prompt_force
-
-* Wed Jun 04 2025 Jens Petersen <petersen@redhat.com> - 0.6.2-1
-- add set_ansi() helper function for users
-
-* Sat May 31 2025 Jens Petersen <petersen@redhat.com> - 0.6.1-1
-- more consistent separators no longer use PROMPT_HIGHLIGHT
- (prevents separator being bold by default on GNOME)
-- only ANSI reset again after $ prompt if PROMPT_END
-- improve the optional git handling
-
-* Fri May 30 2025 Jens Petersen <petersen@redhat.com> - 0.6-1
-- add prompt_default_setup() and prompt_default_setup_checked()
-- new: prompt_separator(), prompt_separator_color(), prompt_host_os(),
- prompt_no_userhost(), prompt_container_host(), prompt_git_color()
-- new envvars: PROMPT_CONTAINER, PROMPT_GIT_BRANCH, PROMPT_GIT_COLOR
-- coloring is now inherited from the left:
- PROMPT_HIGHLIGHT -> PROMPT_COLOR -> (PROMPT_SEPARATOR_COLOR) ->
- PROMPT_DIR_COLOR -> (PROMPT_SEPARATOR_COLOR) -> PROMPT_GIT_COLOR
-- PS1 is now generated with m4 expansion
-
-* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
-
-* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
-
-* Fri Jun 28 2024 Jens Petersen <petersen@redhat.com> - 0.5-1
-- require interactive bash session
-- new PROMPT_HIGHLIGHT is appended to PROMPT_COLOR and PROMPT_DIR_COLOR
-- try to use local variables
-- new functions: prompt_setup_color_ps1(), prompt_color(),
- prompt_default_highlight(), prompt_default_color(), prompt_dir_color(),
- prompt_default_format(), prompt_os_color(), prompt_container(),
- prompt_no_color(), prompt_highlight(), prompt_no_highlight(),
- prompt_plain(), prompt_traditional_format(), prompt_reset_traditional_ps1()
-- prompt_os_color() replaces prompt_default_os()
-- prepend hexagon if $container defined
-- for Gnome default PROMPT_HIGHLIGHT=1 for bold prompt (#2293059)
-
-* Fri Jun 7 2024 Jens Petersen <petersen@redhat.com> - 0.4.2-1
-- test for BASH_VERSION to avoid running for other shells
- (#2279643, Nathan Grennan)
-- fix condition regression introduced with 0.4.1 linux console change
-- rename prompt_color_force variable to bash_prompt_color_force
-
-* Thu Jan 25 2024 Jens Petersen <petersen@redhat.com> - 0.4.1-1
-- also enable for Linux console (TERM=linux)
-
-* Mon Nov 13 2023 Jens Petersen <petersen@redhat.com> - 0.4-1
-- define PROMPT_COLOR
-- add PROMPT_USERHOST default variable
-- add colorpre and colorsuf variables
-- drop PROMPT_ERROR
-- drop built-in container support for now
-- reset color after $ prompt
-- only define default functions if setting PS1
-
-* Mon Nov 13 2023 Jens Petersen <petersen@redhat.com> - 0.3-1
-- add PROMPT_SEPARATOR and PROMPT_DIRECTORY default variables (#2239152)
-- add optional PROMPT_START and PROMPT_END (replaces PROMPT_BRACKETS)
-- add prompt_default(), prompt_traditional(), and prompt_default_os()
-- expand README.md
-
-* Sat Nov 11 2023 Jens Petersen <petersen@redhat.com> - 0.2.1-1
-- add a container ⬢ symbol prefix
-
-* Fri Nov 10 2023 Jens Petersen <petersen@redhat.com> - 0.2-1
-- add PROMPT_DIR_COLOR to change the dir color (Thomas Steenholdt, #2239152)
-- also check for bash default prompt for login shell (Sam Morris, #2248853)
-- add PROMPT_BRACKETS to surround the prompt with traditional brackets
- (based on feedback from Thomas Steenholdt, #2239152)
-
-* Thu Nov 9 2023 Jens Petersen <petersen@redhat.com> - 0.1.1-1
-- only show error code if PROMPT_ERROR set
-
-* Tue Aug 15 2023 Jens Petersen <petersen@redhat.com> - 0.1-6
-- rename source package to shell-color-prompt
-
-* Tue Jun 27 2023 Jens Petersen <petersen@redhat.com> - 0.1-5
-- the colon separator is now uncolored
-
-* Tue Jun 27 2023 Jens Petersen <petersen@redhat.com> - 0.1-4
-- revert default to normal green (not bright/bold)
-- set prompt_color_force to override interactive terminal checks
-- drop bold from red error code
-
-* Tue Jun 27 2023 Jens Petersen <petersen@redhat.com> - 0.1-3
-- quote TERM expansion in conditional
-
-* Tue Jun 27 2023 Jens Petersen <petersen@redhat.com> - 0.1-2
-- change default to dim reverse video
-
-* Mon Jun 26 2023 Jens Petersen <petersen@redhat.com>
-- initial poc with bold green default
diff --git a/sources b/sources
deleted file mode 100644
index e69de29..0000000
--- a/sources
+++ /dev/null
diff --git a/test.bats b/test.bats
deleted file mode 120000
index b1e9b71..0000000
--- a/test.bats
+++ /dev/null
@@ -1 +0,0 @@
-tests/bats/test.bats
\ No newline at end of file
diff --git a/tests/bats/Makefile b/tests/bats/Makefile
deleted file mode 100644
index f0ce195..0000000
--- a/tests/bats/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-export BASH_COLOR_PROMPT_DIR = ../..
-
-check:
- make -C $(BASH_COLOR_PROMPT_DIR)
- rm -f logs/*
- bats --timing --gather-test-outputs-in logs test.bats
diff --git a/tests/bats/main.fmf b/tests/bats/main.fmf
deleted file mode 100644
index 6a2cf3b..0000000
--- a/tests/bats/main.fmf
+++ /dev/null
@@ -1,8 +0,0 @@
-summary: test bash-color-prompt
-require:
-- bash
-- bash-color-prompt
-- bats
-- git-core
-test: bats test.bats
-framework: shell
diff --git a/tests/bats/test.bats b/tests/bats/test.bats
deleted file mode 100644
index 589e9bb..0000000
--- a/tests/bats/test.bats
+++ /dev/null
@@ -1,117 +0,0 @@
-setup_file() {
- [ -d bats-support ] || git clone https://github.com/bats-core/bats-support.git
- [ -d bats-assert ] || git clone https://github.com/bats-core/bats-assert.git
-}
-
-setup() {
- load 'bats-support/load'
- load 'bats-assert/load'
- # get the containing directory of this file
- bash_prompt_color_force=1
- bash_prompt_color_test=1
- container=
- unset DESKTOP_SESSION
- BASH_COLOR_PROMPT_FILE=${BASH_COLOR_PROMPT_DIR:-/etc/profile.d}/bash-color-prompt.sh
-
- # expected output
- COL=32
- HOST=$(hostname -s)
- DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
- PRETTY_DIR="$(echo $DIR | sed -e s\%$HOME\%~\%)"
- PROMPTCHAR='$'
- case $USER in
- root)
- COL=35
- PROMPTCHAR='#'
- NOHOST="^[[${COL}m$USER@$HOST^[[0m:"
- ;;
- mockbuild)
- NOHOST="^[[${COL}m$USER@$HOST^[[0m:"
- ;;
- esac
-}
-
-get_prompt() {
- echo -e "${PS1@P}"
-}
-
-@test "can source bash-color-prompt.sh" {
- source $BASH_COLOR_PROMPT_FILE
-}
-
-@test "print prompt" {
- source $BASH_COLOR_PROMPT_FILE
- get_prompt
-}
-
-@test "default" {
- source $BASH_COLOR_PROMPT_FILE
- run get_prompt
- assert_output "^[[0m^[[${COL}m$USER@$HOST^[[0m:^[[${COL}m$PRETTY_DIR^[[0m$PROMPTCHAR "
-}
-
-@test "default gnome" {
- DESKTOP_SESSION="gnome"
- source $BASH_COLOR_PROMPT_FILE
- run get_prompt
- assert_output "^[[0m^[[1m^[[${COL}m$USER@$HOST^[[0m:^[[1m^[[${COL}m$PRETTY_DIR^[[0m$PROMPTCHAR "
-}
-
-@test "highlight" {
- source $BASH_COLOR_PROMPT_FILE
- prompt_highlight
- run get_prompt
- assert_output "^[[0m^[[1m^[[${COL}m$USER@$HOST^[[0m:^[[1m^[[${COL}m$PRETTY_DIR^[[0m$PROMPTCHAR "
-}
-
-@test "no highlight" {
- DESKTOP_SESSION="gnome"
- source $BASH_COLOR_PROMPT_FILE
- prompt_no_highlight
- run get_prompt
- assert_output "^[[0m^[[${COL}m$USER@$HOST^[[0m:^[[${COL}m$PRETTY_DIR^[[0m$PROMPTCHAR "
-}
-
-@test "container" {
- container=1
- source $BASH_COLOR_PROMPT_FILE
- run get_prompt
- assert_output "^[[0m^[[${COL}m⬢ $USER@$HOST^[[0m:^[[${COL}m$PRETTY_DIR^[[0m$PROMPTCHAR "
-}
-
-@test "no userhost" {
- source $BASH_COLOR_PROMPT_FILE
- prompt_container_host $USER
- run get_prompt
- assert_output "^[[0m$NOHOST^[[${COL}m$PRETTY_DIR^[[0m$PROMPTCHAR "
-}
-
-@test "host" {
- source $BASH_COLOR_PROMPT_FILE
- prompt_container_host $USER
- run get_prompt
- assert_output "^[[0m$NOHOST^[[${COL}m$PRETTY_DIR^[[0m$PROMPTCHAR "
-}
-
-@test "container host" {
- source $BASH_COLOR_PROMPT_FILE
- container=1
- prompt_container_host $USER
- run get_prompt
- assert_output "^[[0m^[[${COL}m⬢ $PROMPT_USERHOST^[[0m:^[[${COL}m$PRETTY_DIR^[[0m$PROMPTCHAR "
-}
-
-@test "git" {
- source $BASH_COLOR_PROMPT_FILE
- PROMPT_GIT_BRANCH=main
- prompt_git_color 35
- run get_prompt
- assert_output "^[[0m^[[${COL}m$USER@$HOST^[[0m:^[[${COL}m$PRETTY_DIR^[[0m:^[[${COL}m^[[35mmain^[[0m$PROMPTCHAR "
-}
-
-@test "plain" {
- source $BASH_COLOR_PROMPT_FILE
- prompt_no_color
- run get_prompt
- assert_output "^[[0m$USER@$HOST^[[0m:$PRETTY_DIR^[[0m$PROMPTCHAR "
-}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-17 14:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17 14:51 [rpms/shell-color-prompt] rawhide: retired in favor of bash-color-prompt Jens Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox