Skip to content

Instantly share code, notes, and snippets.

View CalebMacdonaldBlack's full-sized avatar

Caleb Macdonald Black CalebMacdonaldBlack

View GitHub Profile
@CalebMacdonaldBlack
CalebMacdonaldBlack / example.sh
Created November 22, 2017 02:19
Example shell script template/boilerplate
#!/usr/bin/env bash
appname=$(basename -s .git `git config --get remote.origin.url`)
txtund=$(tput sgr 0 1) # Underline
txtbld=$(tput bold) # Bold
grn=$(tput setaf 2) # Green
red=$(tput setaf 1) # Red
bldgrn=${txtbld}$(tput setaf 2) # Bold Green
bldred=${txtbld}$(tput setaf 1) # Bold Red