This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# All my gist code is licensed under the MIT license. | |
# Video demo: https://www.youtube.com/watch?v=y542zPAPeG4 | |
# colorcat | |
# - cats a file, but if any line contains N hex colors, it appends the colors | |
# (rendered as ansi escape sequences) to the end of the line. | |
# - input can be stdin, a file, or a hex color in plain text |