Skip to content

Instantly share code, notes, and snippets.

@PTRFRLL
Last active December 15, 2021 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PTRFRLL/70a0cf0e03099d1cc98f0abd5d88cc45 to your computer and use it in GitHub Desktop.
Save PTRFRLL/70a0cf0e03099d1cc98f0abd5d88cc45 to your computer and use it in GitHub Desktop.
Bash Status indicators
#!/bin/bash
# Adapted from Pi-Hole's install script
# https://github.com/pi-hole/pi-hole/
# Define colors
RED='\033[91m'
GREEN='\033[92m'
CYAN='\033[96m'
NC='\033[0m'
# Status indicators
TICK="[${GREEN}✓${NC}]"
CROSS="[${RED}✗${NC}]"
INFO="[${CYAN}i${NC}]"
# Example usage
echo -e "${INFO} Info.."
echo -e "${TICK} Success!"
echo -e "${CROSS} Error!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment