Skip to content

Instantly share code, notes, and snippets.

@abacigalup-eb
Last active February 1, 2022 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save abacigalup-eb/b8a1121309c965d2c8c22f569c2df2a4 to your computer and use it in GitHub Desktop.
Save abacigalup-eb/b8a1121309c965d2c8c22f569c2df2a4 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