Skip to content

Instantly share code, notes, and snippets.

View woolinsilver's full-sized avatar

Oliver Wilson woolinsilver

  • Kainos
  • London, UK
View GitHub Profile

Keybase proof

I hereby claim:

  • I am woolinsilver on github.
  • I am woolinsilver (https://keybase.io/woolinsilver) on keybase.
  • I have a public key ASCghWkLzle8RIIfk_vrCZ9swy_FbOOtSvzuNGrqesainAo

To claim this, I am signing this object:

@woolinsilver
woolinsilver / color
Last active September 19, 2016 13:17
Shell color and font styles.
#!/usr/bin/env bash
isColorTerminal () {
COLOR_SUPPORT=$(tput colors)
[ -t 1 ] && [ -n "${COLOR_SUPPORT}" ] && [ "${COLOR_SUPPORT}" -ge 8 ]
}
if isColorTerminal ; then
# Escape Squence