m4rc1no5/color-bash-prompt

Color your bash commands

dev-master 2015-12-11 08:02 UTC

This package is not auto-updated.

Last update: 2024-05-25 17:10:42 UTC


README

Total Downloads

Color your bash commands

Documentation

Table of contents

  1. Installation
  2. Examples

Installation

ColorBashPrompt is available at packagist.org, so you can use composer to download this library and all dependencies.

(add to require section in your composer.json file)

    {
        "require": {
            "m4rc1no5/color-bash-prompt": "@dev"
        }
    }

Examples

// create ColorBashPrompt
$cbp = new ColorBashPrompt();

//yellow text in console
echo $cbp->writeln("Yellow text", ColorBashPrompt::YELLOW);