Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giraugh/pasta
Displays today's pastafarian holiday. Intended for use as part of a terminal welcome message.
https://github.com/giraugh/pasta
Last synced: 2 months ago
JSON representation
Displays today's pastafarian holiday. Intended for use as part of a terminal welcome message.
- Host: GitHub
- URL: https://github.com/giraugh/pasta
- Owner: giraugh
- License: mit
- Created: 2021-06-09T09:11:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-01T02:47:40.000Z (over 1 year ago)
- Last Synced: 2024-10-08T12:21:53.077Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 71.3 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pasta 🍝
Displays the pastafarian holiday for the current date. A small program written in rust and intended for use as part of a terminal greeting message.## Usage
Simply run the binary and it will print the current holiday to standard out. For example, this may be the output if run on the 9th of June.```bash
> pasta
Bathe in Marinara Day
```You can add or change any holidays in the `holidays.csv` file to customise the output :thumbsup:.
## Building
Building `pasta` requires a copy of the rust compiler. You can install it using rustup which is available [here](https://www.rust-lang.org/tools/install).
Clone locally
```
git clone https://github.com/giraugh/pasta
```Then build it
```
cd pasta
cargo build
```Then, optionally, you can install it to your PATH.
```
cargo install --path pasta
```After doing so you can use it in your terminal greeting scripts. Here is an example for fish shell.
```fish
function fish_greeting
echo ""
echo "Hello!"
echo "Today is "(set_color blue)(pasta)(set_color normal)
echo ""
end
```## Contributing
If you encounter any issues or bugs, please leave an issue on Github. Additionally, all and any PRs are welcome :)## Copyright
*Ewan Breakey - MIT 2021*