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.
You can install ASCIITerm using either paru or yay. Run the following command:
paru -S ascii-term
or
yay -S ascii-term
After installation, you need to configure ASCIITerm by creating two text files in the .config/ascii-term
directory:
- ascii.txt: Place your custom ASCII art here.
- color.txt: Add your desired color codes here.
The default color code included in color.txt
is:
�[38;5;105m
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)
To automatically display your ASCII art when opening the terminal, you can add a command to your shell configuration file.
-
Open your
.bashrc
file:nano ~/.bashrc
-
Add the following line at the end of the file:
asciiterm
-
Save the file and exit.
-
Reload your bash configuration:
source ~/.bashrc
-
Open your
.zshrc
file:nano ~/.zshrc
-
Add the following line at the end of the file:
asciiterm
-
Save the file and exit.
-
Reload your zsh configuration:
source ~/.zshrc
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