Git Product home page Git Product logo

peterdavehello / colorechoforshell Goto Github PK

View Code? Open in Web Editor NEW
109.0 3.0 18.0 228 KB

Make ๐Ÿš(shell) 's ๐Ÿ’ฌ (`echo`) to be ๐ŸŽจ easily โœจ Support โœ… sh โž• bash โž• zsh โž• ksh โž• ๐ŸŸ One simple command for vibrant text output! ๐Ÿ’ซ

License: GNU General Public License v2.0

Shell 100.00%
echo ksh fish bash color zsh sh shell shellscript script

colorechoforshell's Issues

Fish shell interactive use

Not really an issue, just a snippet to use interactively as the dist file contains multiple function declarations, we can't use native Fish autoloading mechanism and need to extract the functions

Fetch the dist script for fish

curl --location --output $__fish_config_dir/functions/ColorEcho.fish https://raw.githubusercontent.com/PeterDaveHello/ColorEchoForShell/master/dist/ColorEcho.fish

Extract the functions, one per file to leverage autoloading

functions \
	| grep echo. \
	| while read line; \
		funcsave $line --directory $__fish_config_dir/functions/echo-colored/; \
	end

Tell Fish where we extracted the functions, so he can look there too

echo 'set --append fish_function_path $HOME/.config/fish/functions/echo-colored' >> $__fish_config_dir/config.fish

Preview

Open a new shell and try it

echo-colored.webm.mov

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.