Crates.io | lovesay |
lib.rs | lovesay |
version | |
source | src |
created_at | 2023-06-10 22:14:48.750557+00 |
updated_at | 2025-02-21 23:43:42.271697+00 |
description | lovesay but rusty |
homepage | https://github.com/dotzenith/lovesay.rs |
repository | https://github.com/dotzenith/lovesay.rs |
max_upload_size | |
id | 887098 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
lovesay.rs is a port of lovesay in rust. It is a simple rust program that displays a quote from a loved one based on the day of the month or a quote passed in through the cli arguments.
Note: These requirements only apply if using you're using lovesay to print a different quote for each day of the month.
~/.config/lovesay/
.example/quotes
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dotzenith/lovesay.rs/releases/latest/download/lovesay-installer.sh | sh
brew install dotzenith/tap/lovesay
powershell -ExecutionPolicy ByPass -c "irm https://github.com/dotzenith/lovesay.rs/releases/latest/download/lovesay-installer.ps1 | iex"
cargo install lovesay
Pre-Compiled binaries for linux, mac, and windows are available in Releases
git clone https://github.com/dotzenith/lovesay.rs.git
cd lovesay.rs
cargo build --release
./target/release/lovesay
lovesay Hello World
quotes
file in ~/.config/lovesay/
, lovesay can be used without any argumentslovesay
LOVESAY_PATH
env variable can be used as suchexport LOVESAY_PATH="~/path/to/file"
lovesay uses your terminal's colorscheme by default, but other colorschemes can be set using an env variable
export LOVESAY_COLORSCHEME=nord # uses catppuccin mocha by default if this is left blank or malformed
The available colorschemes are as follows:
export LOVESAY_NO_NERD=1 # Set if your terminal does not use a nerd font (can be set to anything, lovesay just checks for existence)
export LOVESAY_MAX_WIDTH=80 # Override the width lovesay will use to wrap a quote
lovesay | lolcat # pipe output to lolcat
echo something | lovesay # take input from another command
echo something | lovesay | lolcat # combine the two
While this rust port has grown up to be the main version, the reasoning for the original is below:
I wrote lovesay because I got tired of seeing neofetch or pfetch every time I opened my terminal. I wanted something more personal.
Seeing words full of love from my partner is a lot better than any other command I could possibly run. It makes my terminal feel cozy, welcoming, and as is the case with most things my partner touches, it makes my terminal feel like home.
I hope that someone else finds a use for this little script as well. Love is a wonderful thing, and we could all use a little bit more of it in our lives (especially arch linux users)
1.0.2 - Update Rust edition