#command #run-command #env-var #variables #environment #running #daddy

app shell-daddy

Daddy's here to support you when commands~

3 releases

0.1.3 Mar 25, 2023
0.1.2 Mar 25, 2023
0.1.1 Mar 25, 2023

#111 in #running

41 downloads per month

MIT/Apache

7KB
89 lines

cargo-daddy

Daddy's here to support you when running commands~ ❤️

based on and forked from cargo-mommy

Installation

Install shell-daddy like you would any other cargo crate~

> cargo install shell-daddy

Usage

Run whatever command you would normally~

> dnf update

Error: This command has to be run with superuser privileges (under the root user on most systems).

daddy knows his little girl can do better~ ❤️

>_

Configuration

Shell setup~ In bash, use export PROMPT_COMMAND="shell-daddy \$?" in your .bashrc. This setup will vary depending on shell.

Daddy will read the following environment variables to make his messages better for you~ ❤️

  • SHELL_DADDYS_LITTLE - what to call you~ (default: "girl")
  • SHELL_DADDYS_PRONOUNS - what pronouns daddy will use for themself~ (default: "his")
  • SHELL_DADDYS_ROLES - what role daddy will have~ (default "daddy")

All of these options can take a / separated list. Daddy will randomly select one of them whenever he talks to you~

For example, the phrase "daddy loves his little girl~ ❤️" is "CARGO_DADDYS_ROLE loves CARGO_DADDYS_PRONOUNS little CARGO_DADDYS_LITTLE~ ❤️"

So if you set CARGO_DADDYS_ROLES="daddy", CARGO_DADDYS_PRONOUNS="his/their", and CARGO_DADDYS_LITTLE="boy/pet/baby" then you might get any of

  • daddy loves their little boy~ ❤️
  • daddy loves his little pet~ ❤️
  • daddy loves their little baby~ ❤️

And so on~ ❤️

Dependencies

~1–2MB
~40K SLoC