Skip to content

Instantly share code, notes, and snippets.

@pachanka
Created April 22, 2018 23:45
Show Gist options
  • Save pachanka/ac01ec5a7bd80ba41ae55a563f594c29 to your computer and use it in GitHub Desktop.
Save pachanka/ac01ec5a7bd80ba41ae55a563f594c29 to your computer and use it in GitHub Desktop.
Splaining bash command.
.\" Manpage for splaining.
.\" Contact social@pachanka.org.in to correct errors or typos.
.TH man 8 "22 March 2018" "1.0" "splaining man page"
.SH NAME
splaining \- explain something obvious in a condescending manner.
.SH SYNOPSIS
splaining [suggestion]
.SH DESCRIPTION
splaining is a small command that will return an explanation for any topic you choose or, if no option is given will attempt to explain things anyway, without knowing what is being explained.
.SH OPTIONS
The splaining command does not take any options, they are called "suggestions" and will be disregarded by the command on input.
.SH SEE ALSO
humor(8), sexism(1), biased(8)
.SH BUGS
No bugs. Ever. Although the program seems to imply that the man page is biased.
.SH AUTHOR
Pachanka (https://blog.pachanka.org)
#!/bin/bash
# See man splaining for more information
declare -a splains=(
"Did you read the man page? It explains things you know."
"Here's a fun fact; feminine vote was invented by Mussolini"
"That's because the word \"sexist\" has been overused by the media."
# Add your mansplaining quotes here.
)
echo ""
echo ${splains["$[RANDOM % ${#splains[@]}]"]};
echo ""
exit 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment