https://github.com/alesr/oh-my-zsh-haiku-plugin
An oh my zsh plugin that prints a haiku promoting work-life balance and stress management once every 24 hours when terminal is open
https://github.com/alesr/oh-my-zsh-haiku-plugin
Last synced: 8 months ago
JSON representation
An oh my zsh plugin that prints a haiku promoting work-life balance and stress management once every 24 hours when terminal is open
- Host: GitHub
- URL: https://github.com/alesr/oh-my-zsh-haiku-plugin
- Owner: alesr
- License: mit
- Created: 2023-03-28T12:43:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-29T09:05:49.000Z (over 2 years ago)
- Last Synced: 2025-01-22T18:51:41.353Z (10 months ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - haiku - Prints a haiku promoting work-life balance and stress management once every 24 hours when the terminal is open. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - haiku - Prints a haiku promoting work-life balance and stress management once every 24 hours when the terminal is open. (Plugins / ZSH on Windows)
README
# haiku
Haiku (chat-gpt powered) plugin for oh-my-zsh
An Oh My Zsh plugin that prints a haiku promoting work-life balance and stress management once every 24 hours when the terminal is open
## Example
```
alesr in ~ λ
Work hard, play hard
Take care of yourself
Have a great life!
alesr in ~ λ
Work life balance,
A must for clear thoughts:
Rest and be kind.
alesr in ~ λ
Refreshing moments bring;
Some much needed balance, now;
Leave desk, go outside.
alesr in ~ λ
Take a break!
Calm your mind, your soul!
Self-care is key!
alesr in ~ λ
Work-life balance?
Must find a way to de-stress;
Take a break, have cake.
alesr in ~ λ
```
## Requirements
- [OpenAI API key](https://platform.openai.com/account/api-keys) set in the environment variable `OPENAI_API_KEY`
- curl or wget
- jq
## Installation
### Manual
Clone this repository into your oh-my-zsh custom plugins directory:
```sh
git clone https://github.com/alesr/haiku.git
```
Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
```sh
plugins=(... haiku)
```
````sh
source ~/.zshrc
````