48 lines
1.5 KiB
Bash
Executable File
48 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# See man Splaining for more information
|
|
#
|
|
|
|
if ! [ -f "/usr/local/man/man1/splaining.1" ]; then
|
|
mkdir -p "/usr/local/man/man1"
|
|
cat << EOF > "/tmp/splaining.1"
|
|
.\" Manpage for splaining.
|
|
.\" You are about to be advised about something you already know in a condescending manner.
|
|
.TH man 8 "05 July 2020" "1.0" "splaining man page"
|
|
.SH NAME
|
|
splaining \- Free useless advice
|
|
.SH SYNOPSIS
|
|
splaining
|
|
.SH DESCRIPTION
|
|
The splaining(0) command is an obnoxious command that assumes you have no idea about what you are doing. Definition of mansplaining:
|
|
n. Explaining (something) in a condescending or self-righteous manner, especially as a man to a woman.
|
|
.SH OPTIONS
|
|
The splaining command does not take any options or arguments. However, it will always assume you are wrong.
|
|
.SH SEE ALSO
|
|
mansplanation(8), womansplaining(5)
|
|
.SH BUGS
|
|
No known bugs. If any re found assume the flaws are obviously yours.
|
|
.SH AUTHOR
|
|
Manny Splainer
|
|
EOF
|
|
echo "Attempting to install man page."
|
|
sudo install -g 0 -o 0 -m 0644 "/tmp/splaining.1" "/usr/local/man/man1/"
|
|
sudo gzip "/usr/local/man/man1/splaining.1"
|
|
fi
|
|
|
|
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 "For more information type:"
|
|
echo " man splaining"
|
|
echo
|
|
echo ""
|