Skip to content

A shell script for displaying custom ASCII art in your terminal with easy color configurations.

Notifications You must be signed in to change notification settings

marcosdanielr/ascii-term

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

ASCIITerm

ASCIITerm is a simple shell script that allows users to display ASCII art in the terminal. It offers customization options for both the ASCII art and the color scheme.

Demonstration

Installation

You can install ASCIITerm using either paru or yay. Run the following command:

paru -S ascii-term

or

yay -S ascii-term

Configuration

After installation, you need to configure ASCIITerm by creating two text files in the .config/ascii-term directory:

  1. ascii.txt: Place your custom ASCII art here.
  2. color.txt: Add your desired color codes here.

Default Color

The default color code included in color.txt is:

�[38;5;105m

Customizing Colors

You can customize the colors in color.txt using ANSI color codes. Here are a few examples:

  • Red: �[31m
  • Green: �[32m
  • Yellow: �[33m
  • Blue: �[34m
  • Magenta: �[35m
  • Cyan: �[36m
  • White: �[37m
  • Reset Color: �[0m (This will reset the text color back to default)

Automatic Initialization

To automatically display your ASCII art when opening the terminal, you can add a command to your shell configuration file.

For Bash

  1. Open your .bashrc file:

    nano ~/.bashrc
  2. Add the following line at the end of the file:

    asciiterm
  3. Save the file and exit.

  4. Reload your bash configuration:

    source ~/.bashrc

For Zsh

  1. Open your .zshrc file:

    nano ~/.zshrc
  2. Add the following line at the end of the file:

    asciiterm
  3. Save the file and exit.

  4. Reload your zsh configuration:

    source ~/.zshrc

Usage

Now, every time you open your terminal, ASCIITerm will automatically display your ASCII art in the color you have specified. You can also run it manually by typing:

asciiterm

About

A shell script for displaying custom ASCII art in your terminal with easy color configurations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages