Simple git based script registry
curl -sSL https://raw.githubusercontent.com/audacioustux/bashlets/main/bashlet.sh | bash -s install bashlet
Make sure $HOME/.local/bin is in $PATH
nix profile install github:audacioustux/bashlets
bashlet install bashlet
# retries to run a command with exponential backoff (max-delay 5s)
bashlet install util/ebort
# print help / usage / man
bashlet exec util/ebort -h
# retries to run a command with exponential backoff (max-delay 5s)
bashlet exec util/ebort -v -u 5 bash -c 'rand=$(( RANDOM % 5 )); echo "Random number: $rand"; (( rand == 0 ))'