Public source for shell functionality in the DarkPi system.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
( jak ) d482b30842 Functionality refactor, fix reloading a bit.
Add some whitespace for readability, fix a potentially problematic jargon usage.

Clarify copywrite slightly.

Add check for self variable, message on new terminals if not.

Eliminate/prune magic path config chunk, probably broke other bits slightly.
3 years ago
cfg Peering scaffolds. 3 years ago
core Functionality refactor, fix reloading a bit. 3 years ago
doc Directory restructure, legacy nomenclature. 3 years ago
stack Directory restructure, legacy nomenclature. 3 years ago
tmp Minour mikrotik rant, while the network is unuseable. 3 years ago
f.sh Expand & attempt explanation of bash options. 3 years ago
readme.md Loop is working, sorta. 3 years ago

readme.md

Functions, shell (lite).

Pre-alpha, see b25c535b582f8ecb2632e48b2c940565e05cc3d1 for roadmap.

Mostly about automating a robust, minimal, sustainably sourced build pipeline.

usage

command example(s):
path/to/f.sh --option value "path or target"
eg
f --install depends ./nginx.depends
or
f -v

quickstart

bash <(curl -s https://functions.sh/)

This executes the bootstrapper in a subshell,
you can start using f commands in new shells immediately.

Or,
if you're the cautious type,
you can clone, build, and install it after verifying the hash (see [doc/readme.md]).

persistence

The shim, as installed by the quickstart command, allows the use of aliases (see core/aliases.sh) and most fsh/tool scripts, but persistence needs root permissions to install the build service.

Running loop.sh will, if the laminar service

scripting

Include f.sh in your scripts with:
shopt -s expand_aliases; . path/to/f.sh
or execute piecemeal as described in #quickstart

legal

All rights reserved 1990-2022,
all contributions assumed original & freely given,
non-commercial/hobbiest/educational use encouraged.

knowledge disclaimer

All of this came from a book or a website somewhere,
if you believe you work has been referenced,
thank you for teaching me that particular trick.

For purposes of branding & legality,
f.sh/fsh/f © 1990-present @jakimfett.

Due to the resurgence of public toleration for neo-nazi identities,
authoritarian/nationalist/colonial use explicitly prohibited,
go kick rocks in flip flops, ya gorram fascists.

commercial support

Contact 'via email' or 'web form' for commercial licensing & professional use.

usage

Include functionality in your own scripts with:

#!/
DIR=path/to/fsh/
[[ -f $DIR/$1  ]] || { echo "fsh not found"; exit 1; }
[[ "$1" =~ ../ ]] && { echo "Forbidden path"; exit 2; }
source /usr/local/etc/library.sh
cd $DIR
launch_script $1