Skip to main content
  1. Projects/

spookyfetch

·114 words·1 min
Jake Roggenbuck
Author
Jake Roggenbuck
Working at Capital One as a SWE Intern and Conducting Programming Language Research

spookyfetch #

Fetch tool but spooky for hacktoberfest and hacktoberfest github topic

image

Install #

go install github.com/jakeroggenbuck/spookyfetch@latest

Display automatically in October #

This code will run on shell startup and check if it’s October and display the spookyfetch if it is. I put this in my .bashrc file.

# Get the date
MONTH=$(date "+%m")
MONTH=10#${MONTH}

# Check if it's October
if [[ $MONTH -eq 10 ]]; then
	SPOOKY=1
fi

# Check if the October flag was set
if [[ $SPOOKY -eq 1 ]]; then
	# Check if the spookyfetch program is installed
	if [[ $(which spookyfetch & >/dev/null 2>&1) ]]; then
		spookyfetch
	else
		echo "Install spookyfetch and add it to your PATH"
	fi
fi