Added colors.sh, add simplistic README

This commit is contained in:
David Thurstenson 2017-02-08 09:39:00 -06:00
parent 5e93e260d6
commit 1e258aadbe
2 changed files with 29 additions and 0 deletions

1
README Normal file
View File

@ -0,0 +1 @@
Frequently used code snippits.

28
bash/colors.sh Normal file
View File

@ -0,0 +1,28 @@
fg_black=$(tput setaf 0)
fg_red=$(tput setaf 1)
fg_green=$(tput setaf 2)
fg_yellow=$(tput setaf 3)
fg_blue=$(tput setaf 4)
fg_magenta=$(tput setaf 5)
fg_cyan=$(tput setaf 6)
fg_white=$(tput setaf 7)
bg_black=$(tput setab 0)
bg_red=$(tput setab 1)
bg_green=$(tput setab 2)
bg_yellow=$(tput setab 3)
bg_blue=$(tput setab 4)
bg_magenta=$(tput setab 5)
bg_cyan=$(tput setab 6)
bg_white=$(tput setab 7)
bold=$(tput bold)
dim=$(tput dim)
reverse=$(tput rev)
ul_b=$(tput smul)
ul_e=$(tput rmul)
standout_b=$(tput smso)
standout_e=$(tput rmso)
reset=$(tput sgr0)