free software resistance
the cost of computing freedom is eternal vigilance
### help
*original date:* sep 2018
*originally posted:* oct 2024
help:
```
#!/usr/bin/env bash
#### license: creative commons cc0 1.0 (public domain)
#### http://creativecommons.org/publicdomain/zero/1.0/
proginf="cli help overloading 0.2"
if [[ "$1" == "" ]]
then echo
function pq()
{
echo -e "$q" | tr '(' '^' | sed "s/\ \@/\[1\;37m\ \@/g" | sed "s/\@\ /\@\ \[0\;37m/g" | sed "s/\@\^/\@\[0\;37m\^/g" | tr '^' '('
}
q=' [1;33mfig os command line help[0m ' ; pq
q=' ' ; pq
echo -e " [1;33mhelp usual [0m standard bash help command"
echo -e " [1;33mhelp network [0m help with network commands"
echo -e " [1;33mhelp files [0m help with file commands"
echo -e " [1;33mhelp config [0m help with some puppy settings"
echo -e " [1;33mhelp misc [0m commands to reboot, stop beeping, etc."
echo -e " [1;33mhelp coding [0m quick help for coding"
echo -e " [1;33mhelp alias [0m aliases to customize bash"
echo
else
if [[ "$1" == "usual" ]]
then bash -c 'help'
fi
if [[ "$1" == "network" ]]
then echo -e "help with network commands" \\n
echo -e \\nto connect to available network interfaces: '(use one)'\\n
for p in $(ip link | cut -d " " -f 2 | tr -d ':') ;
do if [[ "$p" != "lo" ]] ; then echo dhclient $p ;
fi ; done ;
echo -e \\n \\nto find available network interfaces: \\n \\nip link \| 'cut -d " " -f 2 | tr -d' \':\' \\n
fi
if [[ "$1" == "files" ]]
then echo "help with file commands"
fi
if [[ "$1" == "config" ]]
then echo "help with some puppy settings"
fi
if [[ "$1" == "misc" ]]
then echo "commands to reboot, stop beeping, etc."
fi
if [[ "$1" == "coding" ]]
then echo "quick help for coding"
fi
if [[ "$1" == "alias" ]]
then echo "aliases to customize bash"
fi
fi
```
license: 0-clause bsd
```
# 2018 mn
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
```
=> https://freesoftwareresistance.neocities.org