Tiny terminal CLI to fetch today's FC2 menu and show the past/current/next meals
Credits: Aadit Agarwal, the author of the OG Menu website!
curljq(for JSON parsing)
Install jq:
# Debian / Ubuntu
sudo apt install jq
# macOS (Homebrew)
brew install jq-
Save the script to
khaana.sh(or clone the repo and use the provided file) -
Make it executable:
chmod +x khaana.sh- Make it convenient to run
Option A - add to path:
mkdir -p ~/bin
mv khaana.sh ~/bin/kmkh
# Ensure ~/bin is in PATH, add to ~/.bashrc or ~/.zshrc:
# export PATH="$HOME/bin:$PATH"
Option B — alias (quick and dirty):
# Add to ~/.bashrc or ~/.zshrc:
alias kmkh='/full/path/to/khaana.sh'
# then: source ~/.bashrcAfter one of the above, you can run kmkh anywhere.
# Default: show current meal (if within a meal window), otherwise the next meal
kmkh
# Show the next upcoming meal explicitly
kmkh --next
# Show a specific meal for today (ignores other meals)
kmkh --breakfast
kmkh --lunch
kmkh --snacks
kmkh --dinner
# Help
kmkh -h