Blog/Colors in bash: Revision history

From ~esantoro

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

25 April 2023

  • curprev 21:5121:51, 25 April 2023Esantoro talk contribs 583 bytes +583 Created page with "These are a few lines of code to get some basic coloring when writing bash scripts. I'm publishing them here because sometimes i have to use <s>work</s> other people's computers and it comes handy to be able to copy-and-paste them where needed. <syntaxhighlight lang="bash"> function yellow { tput setaf 3 ; echo $1 ; tput sgr0 } function red { tput setaf 1 ; echo $1 ; tput sgr0 } function green { tput setaf 2 ; echo $1 ; tput sgr0 } function cyan { tp..." Tag: Visual edit