Skip to content

Instantly share code, notes, and snippets.

@willfolsom
Created May 27, 2021 20:43
Show Gist options
  • Save willfolsom/f927436a3c695b874bc7349359c9f745 to your computer and use it in GitHub Desktop.
Save willfolsom/f927436a3c695b874bc7349359c9f745 to your computer and use it in GitHub Desktop.
Using tput and variables in .sh script
#!/bin/bash
green=`tput setaf 2`
bold=`tput bold`
reset=`tput sgr0`
separator="-----=====-----=====-----=====-----=====-----"
echo "🧪 ${green}${bold}Running step one"
echo "${separator}${reset}"
echo "hello world"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment