LinuxCommandLibrary

pridecat

Display files with syntax highlighting

TLDR

Print the contents of a file in pride colors to stdout

$ pridecat [path/to/file]
copy

Print contents of a file in trans colors
$ pridecat [path/to/file] [[--trans|--transgender]]
copy

Alternate between lesbian and bisexual pride flags
$ pridecat [path/to/file] --lesbian [[--bi|--bisexual]]
copy

Print contents of a file with the background colors changed
$ pridecat [path/to/file] [[-b|--background]]
copy

List directory contents in pride flag colors
$ ls | pridecat --[flag]
copy

SYNOPSIS

pridecat [file...]

PARAMETERS

[file...]
    One or more files to display with rainbow colors. If no file is specified, pridecat reads from standard input.

DESCRIPTION

pridecat is a whimsical command-line utility that functions similarly to the standard cat command, but with a colorful twist. Instead of simply outputting the contents of a file to standard output, pridecat adds a rainbow gradient to each line, making the output visually appealing, especially when dealing with lengthy text files or code. This can be a fun way to brighten up your terminal experience or add a bit of personality to your command-line workflow.

Pridecat is generally used for entertainment or presentation purposes rather than practical scripting as the coloring is only intended for human view and adds overhead.

CAVEATS

The color formatting added by pridecat can make it difficult to pipe the output to other commands that expect plain text. It is primarily intended for viewing content in the terminal and might not be suitable for scripting or automated tasks. The colors are based on the terminal's support; they might not be displayed accurately in all terminals.

INSTALLATION

The installation process for pridecat varies depending on the distribution. Often, it involves downloading the source code (e.g., from GitHub) and compiling it, or using a package manager if available in the distributions community repository.
Typicaly:
- git clone or download of a repository containing the source code.
- make to compile it
- sudo make install to install the program

EXAMPLES

To display the contents of 'my_text_file.txt' with rainbow colors:

pridecat my_text_file.txt

To pipe the output of another command to pridecat:

ls -l | pridecat

HISTORY

pridecat is a relatively recent addition to the collection of command-line utilities, designed primarily for aesthetic purposes. It is not a standard or widely-distributed command and is often found in custom or user-contributed software repositories like AUR(Arch User Repository) or similar.

SEE ALSO

cat(1), lolcat(1), less(1)

Copied to clipboard