Skip to content

Instantly share code, notes, and snippets.

@redraw
Forked from abacigalup-eb/moon.1d.sh
Created February 1, 2022 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redraw/5d29c6a2dbe1bdeda8dc076266f03f61 to your computer and use it in GitHub Desktop.
Save redraw/5d29c6a2dbe1bdeda8dc076266f03f61 to your computer and use it in GitHub Desktop.
#!/bin/bash
# brew install xbar jq
# pip install astro-cli
PATH=$PATH:/usr/local/bin
ASTRO=$(pyenv which astro)
$ASTRO --date "a week ago" -f json moon phases | jq -r "first | .emoji"
echo "---"
echo "phases | size=10"
$ASTRO --date "a week ago" moon phases | tail +3
echo "---"
echo "eclipses | size=10"
$ASTRO --date "a week ago" moon eclipses | tail +3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment