Making bash printed text prettier.
Adjusted for modern 256 color terminals.
#!/bin/bash
source ~/.bashark/bashark.sh
color 214 # Light orange
echo This will be light orange
# Or inline
echo $(color 190)This is light yellow$(color 171) and light purple, ${NORMAL}back to normal.
Here is a sample of the built in variables
I wrote these little helpers for my own projects, because I believe bash users deserve animations, just like anyone else!
To run a command with a nice animation, just call:
source ~/.bashark/bashark.sh
cmd "Status message" command param1 param2
Here's an example:
Either copy the files in source
and include bashark.sh
from it, or use the install script to copy it to your home directory under .bashark
.
To use in your script:
source ~/.bashark/bashark.sh
or change ~/.bashark
to your custom location.
TTY Gif - for helping me create GIF animations from my terminal