8000 GitHub - moshegottlieb/bashark: Easy 256 color support for bash, and progress animations for running commands via bash scripts
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

moshegottlieb/bashark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bashark

Making bash printed text prettier.

Adjusted for modern 256 color terminals.

Quickstart

Colors

#!/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.

Inline colors

Here's a useful colormap Color map

Here is a sample of the built in variables

Color map

Commands

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:

Color map

Installation

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.

Thanks!

TTY Gif - for helping me create GIF animations from my terminal

About

Easy 256 color support for bash, and progress animations for running commands via bash scripts

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0